f2fs: enable in-place-update for fdatasync
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 25 Jul 2014 02:11:43 +0000 (19:11 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 30 Jul 2014 21:13:23 +0000 (14:13 -0700)
commitea1aa12ca237149227ef68af50c9a1acf027b625
tree12ac50b385998668bc2978e0949897e071b43ea3
parent6d99ba41a72c1213f2029e6fc66aa7943339b5db
f2fs: enable in-place-update for fdatasync

This patch enforces in-place-updates only when fdatasync is requested.
If we adopt this in-place-updates for the fdatasync, we can skip to write the
recovery information.

Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/segment.h