f2fs: do not skip writing file meta during fsync
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 20 Mar 2013 05:58:38 +0000 (14:58 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 27 Mar 2013 00:16:16 +0000 (09:16 +0900)
commit0ff153a2f1fa7ef31d6d9bc9ce6c3815dede55e6
treef9bf94683b0c9f19ff3606e94eceae5e6b60b7d9
parent6ead114232f786e3ef7a034c8617f2a4df8e5226
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>
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/inode.c