aboutsummaryrefslogtreecommitdiff
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 4c0d6bac914..45ca323d836 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)
static int exofs_file_fsync(struct file *filp, int datasync)
{
int ret;
- struct inode *inode = filp->f_mapping->host;
- struct super_block *sb;
-
- 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;
}