f2fs: split sync_node_pages with fsync_node_pages

This patch splits the existing sync_node_pages into (f)sync_node_pages.
The fsync_node_pages is used for f2fs_sync_file only.

Acked-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Jaegeuk Kim
2016-04-13 16:24:44 -07:00
parent e6e5f5610d
commit 5268137564
5 changed files with 84 additions and 33 deletions

View File

@@ -256,7 +256,7 @@ go_write:
goto out;
}
sync_nodes:
sync_node_pages(sbi, ino, &wbc);
fsync_node_pages(sbi, ino, &wbc);
/* if cp_error was enabled, we should avoid infinite loop */
if (unlikely(f2fs_cp_error(sbi))) {