diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-07-19 19:30:06 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-07-20 14:53:22 -0700 |
commit | 6f3ec9952c13f0adf632e89456df43946cec6525 (patch) | |
tree | bf6d5c9b31a2f31a29b483f5c816411d8751077a /fs/f2fs/recovery.c | |
parent | dd11a5df5219b4d3c4d3f38b9cae48c3518d3152 (diff) | |
download | linux-6f3ec9952c13f0adf632e89456df43946cec6525.tar.bz2 |
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.c | 2 |
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 */ |