summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/recovery.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2014-08-08 10:18:43 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2014-08-19 10:01:35 -0700
commitb307384e4f4670c490b4d142d27fed497df51fae (patch)
treeb31fc60b864738b32c2c10b5a41a88462f54fbd4 /fs/f2fs/recovery.c
parent1c35a90e8ab57cd34b8e806b9c75ba05b3b5c7a3 (diff)
downloadop-kernel-dev-b307384e4f4670c490b4d142d27fed497df51fae.zip
op-kernel-dev-b307384e4f4670c490b4d142d27fed497df51fae.tar.gz
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/f2fs/recovery.c')
-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 d7b67b8..7ca7aad 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);
OpenPOWER on IntegriCloud