aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exofs/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/exofs/file.c')
-rw-r--r--fs/exofs/file.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/fs/exofs/file.c b/fs/exofs/file.c
index 4c0d6bac9143..45ca323d8363 100644
--- a/fs/exofs/file.c
+++ b/fs/exofs/file.c
@@ -45,17 +45,8 @@ static int exofs_release_file(struct inode *inode, struct file *filp)
45static int exofs_file_fsync(struct file *filp, int datasync) 45static int exofs_file_fsync(struct file *filp, int datasync)
46{ 46{
47 int ret; 47 int ret;
48 struct inode *inode = filp->f_mapping->host;
49 struct super_block *sb;
50
51 ret = sync_inode_metadata(inode, 1);
52
53 /* This is a good place to write the sb */
54 /* TODO: Sechedule an sb-sync on create */
55 sb = inode->i_sb;
56 if (sb->s_dirt)
57 exofs_sync_fs(sb, 1);
58 48
49 ret = sync_inode_metadata(filp->f_mapping->host, 1);
59 return ret; 50 return ret;
60} 51}
61 52