f2fs: report unwritten status in fsync_node_pages
The fsync_node_pages should return pass or failure so that user could know fsync is completed or not. Acked-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
@@ -256,7 +256,9 @@ go_write:
|
||||
goto out;
|
||||
}
|
||||
sync_nodes:
|
||||
fsync_node_pages(sbi, ino, &wbc);
|
||||
ret = fsync_node_pages(sbi, ino, &wbc);
|
||||
if (ret)
|
||||
goto out;
|
||||
|
||||
/* if cp_error was enabled, we should avoid infinite loop */
|
||||
if (unlikely(f2fs_cp_error(sbi))) {
|
||||
|
Reference in New Issue
Block a user