aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/inode.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk.kim@samsung.com>2013-03-20 14:58:38 +0900
committerZiyan <jaraidaniel@gmail.com>2015-05-02 14:34:02 +0200
commitd7d7c0d7eee7d70933e588b3857bc6c7551703db (patch)
treedd79183b3fa5f113ab00cf2320275ef9a3ee72d8 /fs/f2fs/inode.c
parent5f76f5fcdfaed1e4f76b4cd4b294bcfc64184eff (diff)
downloadkernel_samsung_tuna-d7d7c0d7eee7d70933e588b3857bc6c7551703db.zip
kernel_samsung_tuna-d7d7c0d7eee7d70933e588b3857bc6c7551703db.tar.gz
kernel_samsung_tuna-d7d7c0d7eee7d70933e588b3857bc6c7551703db.tar.bz2
f2fs: do not skip writing file meta during fsync
This patch removes data_version check flow during the fsync call. The original purpose for the use of data_version was to avoid writng inode pages redundantly by the fsync calls repeatedly. However, when user can modify file meta and then call fsync, we should not skip fsync procedure. So, let's remove this condition check and hope that user triggers in right manner. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/inode.c')
-rw-r--r--fs/f2fs/inode.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c
index a62392a..75d3000 100644
--- a/fs/f2fs/inode.c
+++ b/fs/f2fs/inode.c
@@ -80,7 +80,6 @@ static int do_read_inode(struct inode *inode)
fi->i_xattr_nid = le32_to_cpu(ri->i_xattr_nid);
fi->i_flags = le32_to_cpu(ri->i_flags);
fi->flags = 0;
- fi->data_version = le64_to_cpu(F2FS_CKPT(sbi)->checkpoint_ver) - 1;
fi->i_advise = ri->i_advise;
fi->i_pino = le32_to_cpu(ri->i_pino);
get_extent_info(&fi->ext, ri->i_ext);