projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c35a90
)
f2fs: avoid bug_on when error is occurred
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Fri, 8 Aug 2014 17:18:43 +0000
(10:18 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 19 Aug 2014 17:01:35 +0000
(10:01 -0700)
During the recovery, if an error like EIO or ENOMEM, f2fs_bug_on should skip.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/recovery.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/recovery.c
b/fs/f2fs/recovery.c
index d7b67b86f60730e21fa9e7839262f27f42e733d2..7ca7aadaa6078cb80cc49bae6bb4143dfb905b62 100644
(file)
--- 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);