Skip to content

Commit bc005a4

Browse files
author
Jaegeuk Kim
committed
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>
1 parent 4c3258b commit bc005a4

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎fs/f2fs/node.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2349,7 +2349,6 @@ static int __f2fs_build_free_nids(struct f2fs_sb_info *sbi,
23492349

23502350
if (ret) {
23512351
up_read(&nm_i->nat_tree_lock);
2352-
f2fs_bug_on(sbi, !mount);
23532352
f2fs_err(sbi, "NAT is corrupt, run fsck to fix it");
23542353
return ret;
23552354
}

0 commit comments

Comments
 (0)