f2fs: set fsync mark only for the last dnode
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 15 Apr 2016 16:43:17 +0000 (09:43 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 26 Apr 2016 21:24:59 +0000 (14:24 -0700)
commit608514deba38c8611ad330d6a3c8e2b9a1f68e4b
tree7ad9dc7a46b492be6e0a7ed5f2d22f57bd7676eb
parentc267ec1526da2d3b12c80a89ebd8eb9b6a01d636
f2fs: set fsync mark only for the last dnode

In order to give atomic writes, we should consider power failure during
sync_node_pages in fsync.
So, this patch marks fsync flag only in the last dnode block.

Acked-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/node.c
fs/f2fs/recovery.c