diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-03-20 14:58:38 +0900 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-03-27 09:16:16 +0900 |
commit | 0ff153a2f1fa7ef31d6d9bc9ce6c3815dede55e6 (patch) | |
tree | f9bf94683b0c9f19ff3606e94eceae5e6b60b7d9 /fs/f2fs/inode.c | |
parent | 6ead114232f786e3ef7a034c8617f2a4df8e5226 (diff) | |
download | linux-0ff153a2f1fa7ef31d6d9bc9ce6c3815dede55e6.tar.gz linux-0ff153a2f1fa7ef31d6d9bc9ce6c3815dede55e6.tar.bz2 linux-0ff153a2f1fa7ef31d6d9bc9ce6c3815dede55e6.zip |
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.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c index e0e8308594a5..f798ddf2c8a8 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); |