f2fs: avoid to wait all the node blocks during fsync
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Thu, 31 Oct 2013 05:57:01 +0000 (14:57 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Thu, 31 Oct 2013 07:01:03 +0000 (16:01 +0900)
commitcfe58f9dcd9afe181894e2257e3f8aa3fee840c5
tree1acd83b88bb0cb1aed28ffe3ae6091f69bd0f091
parent44c60bf2b9f2808e127fa4cd3b11b50a46cf5817
f2fs: avoid to wait all the node blocks during fsync

Previously, f2fs_sync_file() waits for all the node blocks to be written.
But, we don't need to do that, but wait only the inode-related node blocks.

This patch adds wait_on_node_pages_writeback() in which waits inode-related
node blocks that are on writeback.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/node.c