summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/file.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-04-15 09:25:04 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2016-04-26 14:24:54 -0700
commitc267ec1526da2d3b12c80a89ebd8eb9b6a01d636 (patch)
treee55f335a2b1d0271a650827ef9e4af0d8db2fed4 /fs/f2fs/file.c
parent5268137564920843e581304d9bfb06fb9502cf24 (diff)
downloadop-kernel-dev-c267ec1526da2d3b12c80a89ebd8eb9b6a01d636.zip
op-kernel-dev-c267ec1526da2d3b12c80a89ebd8eb9b6a01d636.tar.gz
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>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r--fs/f2fs/file.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index 3d53ee0..60fd64c 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -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))) {
OpenPOWER on IntegriCloud