Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2
+2
fs/f2fs/recovery.c
··· 482 482 #endif 483 483 /* We should not get -ENOSPC */ 484 484 f2fs_bug_on(sbi, err); 485 + if (err) 486 + goto err; 485 487 } 486 488 487 489 /* Check the previous node page having this index */