diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-08-08 19:18:43 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-08-19 19:01:35 +0200 |
commit | b307384e4f4670c490b4d142d27fed497df51fae (patch) | |
tree | b31fc60b864738b32c2c10b5a41a88462f54fbd4 /fs | |
parent | f2fs: fix to recover inline_xattr/data and blocks (diff) | |
download | linux-b307384e4f4670c490b4d142d27fed497df51fae.tar.xz linux-b307384e4f4670c490b4d142d27fed497df51fae.zip |
f2fs: avoid bug_on when error is occurred
During the recovery, if an error like EIO or ENOMEM, f2fs_bug_on should skip.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/f2fs/recovery.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c index d7b67b86f607..7ca7aadaa607 100644 --- a/fs/f2fs/recovery.c +++ b/fs/f2fs/recovery.c @@ -472,7 +472,8 @@ int recover_fsync_data(struct f2fs_sb_info *sbi) /* step #2: recover data */ err = recover_data(sbi, &inode_list, CURSEG_WARM_NODE); - f2fs_bug_on(!list_empty(&inode_list)); + if (!err) + f2fs_bug_on(!list_empty(&inode_list)); out: destroy_fsync_dnodes(&inode_list); kmem_cache_destroy(fsync_entry_slab); |