diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2019-11-01 17:34:21 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2019-11-07 19:40:59 +0100 |
commit | bc005a4d5347da68e690f78d365d8927c87dc85a (patch) | |
tree | 0b9f75132e4dddc4670a10d5f359cd873be0fff0 /fs | |
parent | f2fs: fix wrong description in document (diff) | |
download | linux-bc005a4d5347da68e690f78d365d8927c87dc85a.tar.xz linux-bc005a4d5347da68e690f78d365d8927c87dc85a.zip |
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')
-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; } |