mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 22:02:02 +00:00
f2fs: avoid kernel panic on corruption test
xfstests/generic/475 complains kernel warn/panic while testing corrupted disk. Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
4c3258b9b0
commit
bc005a4d53
1 changed files with 0 additions and 1 deletions
|
@ -2349,7 +2349,6 @@ static int __f2fs_build_free_nids(struct f2fs_sb_info *sbi,
|
||||||
|
|
||||||
if (ret) {
|
if (ret) {
|
||||||
up_read(&nm_i->nat_tree_lock);
|
up_read(&nm_i->nat_tree_lock);
|
||||||
f2fs_bug_on(sbi, !mount);
|
|
||||||
f2fs_err(sbi, "NAT is corrupt, run fsck to fix it");
|
f2fs_err(sbi, "NAT is corrupt, run fsck to fix it");
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue