summaryrefslogtreecommitdiff
path: root/fs/f2fs/recovery.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-07-20 05:30:06 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2016-07-21 00:53:22 +0300
commit6f3ec9952c13f0adf632e89456df43946cec6525 (patch)
treebf6d5c9b31a2f31a29b483f5c816411d8751077a /fs/f2fs/recovery.c
parentdd11a5df5219b4d3c4d3f38b9cae48c3518d3152 (diff)
downloadlinux-6f3ec9952c13f0adf632e89456df43946cec6525.tar.xz
f2fs: handle error case with f2fs_bug_on
It's enough to show BUG or WARN by f2fs_bug_on for error case. Then, we don't need to remain corrupted filesystem. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/recovery.c')
-rw-r--r--fs/f2fs/recovery.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c
index 5d4461f2c266..9e652d5a659b 100644
--- a/fs/f2fs/recovery.c
+++ b/fs/f2fs/recovery.c
@@ -482,6 +482,8 @@ static int do_recover_data(struct f2fs_sb_info *sbi, struct inode *inode,
#endif
/* We should not get -ENOSPC */
f2fs_bug_on(sbi, err);
+ if (err)
+ goto err;
}
/* Check the previous node page having this index */