summaryrefslogtreecommitdiffstats
path: root/fs/exofs/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/exofs/file.c')
-rw-r--r--fs/exofs/file.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/exofs/file.c b/fs/exofs/file.c
index b905c79b4f0..4c0d6bac914 100644
--- a/fs/exofs/file.c
+++ b/fs/exofs/file.c
@@ -48,11 +48,6 @@ static int exofs_file_fsync(struct file *filp, int datasync)
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 */