Skip to content

Commit 6f3ec99

Browse files
author
Jaegeuk Kim
committed
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 <[email protected]>
1 parent dd11a5d commit 6f3ec99

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/f2fs/recovery.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,8 @@ static int do_recover_data(struct f2fs_sb_info *sbi, struct inode *inode,
482482
#endif
483483
/* We should not get -ENOSPC */
484484
f2fs_bug_on(sbi, err);
485+
if (err)
486+
goto err;
485487
}
486488

487489
/* Check the previous node page having this index */

0 commit comments

Comments
 (0)