diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2019-11-01 09:34:21 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2019-11-07 10:40:59 -0800 |
commit | bc005a4d5347da68e690f78d365d8927c87dc85a (patch) | |
tree | 0b9f75132e4dddc4670a10d5f359cd873be0fff0 /fs/f2fs/node.c | |
parent | 4c3258b9b0fff24623a6e95381e1112cc290abd4 (diff) | |
download | linux-bc005a4d5347da68e690f78d365d8927c87dc85a.tar.bz2 |
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>
Diffstat (limited to 'fs/f2fs/node.c')
-rw-r--r-- | fs/f2fs/node.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 8b66bc4c004b..06fd6d77d34b 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c @@ -2349,7 +2349,6 @@ static int __f2fs_build_free_nids(struct f2fs_sb_info *sbi, if (ret) { up_read(&nm_i->nat_tree_lock); - f2fs_bug_on(sbi, !mount); f2fs_err(sbi, "NAT is corrupt, run fsck to fix it"); return ret; } |