diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-08-08 10:18:43 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-08-19 10:01:35 -0700 |
commit | b307384e4f4670c490b4d142d27fed497df51fae (patch) | |
tree | b31fc60b864738b32c2c10b5a41a88462f54fbd4 /fs/f2fs | |
parent | 1c35a90e8ab57cd34b8e806b9c75ba05b3b5c7a3 (diff) | |
download | op-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')
-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 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); |