aboutsummaryrefslogtreecommitdiff
path: root/fs/exofs/file.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-03-24 07:57:38 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-24 07:57:38 -0700
commit1b506cfb6ae63f352643d6e208c85c1351547036 (patch)
tree4556cbdb0443eadc4406778a45d7b771f0dc7be7 /fs/exofs/file.c
parent4cc4d24efce4672f9b0e7fa27963770ae602998f (diff)
parenta49fb4c3d035ab516507b31ec3bd49263caee14d (diff)
Merge branch 'for-linus' of git://git.open-osd.org/linux-open-osd
* 'for-linus' of git://git.open-osd.org/linux-open-osd: exofs: deprecate the commands pending counter exofs: Write sbi->s_nextid as part of the Create command exofs: Add option to mount by osdname exofs: Override read-ahead to align on stripe_size exofs: simple fsync race fix exofs: Optimize read_4_write exofs: Trivial: fix some indentation and debug prints exofs: Remove redundant unlikely()
Diffstat (limited to 'fs/exofs/file.c')
-rw-r--r--fs/exofs/file.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/fs/exofs/file.c b/fs/exofs/file.c
index b905c79b4f0..45ca323d836 100644
--- a/fs/exofs/file.c
+++ b/fs/exofs/file.c
@@ -45,22 +45,8 @@ static int exofs_release_file(struct inode *inode, struct file *filp)
static int exofs_file_fsync(struct file *filp, int datasync)
{
int ret;
- struct inode *inode = filp->f_mapping->host;
- struct super_block *sb;
-
- if (!(inode->i_state & I_DIRTY))
- return 0;
- if (datasync && !(inode->i_state & I_DIRTY_DATASYNC))
- return 0;
-
- ret = sync_inode_metadata(inode, 1);
-
- /* This is a good place to write the sb */
- /* TODO: Sechedule an sb-sync on create */
- sb = inode->i_sb;
- if (sb->s_dirt)
- exofs_sync_fs(sb, 1);
+ ret = sync_inode_metadata(filp->f_mapping->host, 1);
return ret;
}