summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2014-08-08 19:18:43 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2014-08-19 19:01:35 +0200
commitb307384e4f4670c490b4d142d27fed497df51fae (patch)
treeb31fc60b864738b32c2c10b5a41a88462f54fbd4 /fs
parentf2fs: fix to recover inline_xattr/data and blocks (diff)
downloadlinux-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.c3
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);