projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
652be55
)
f2fs: avoid f2fs_bug_on during recovery
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Wed, 11 May 2016 16:13:13 +0000
(09:13 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Wed, 11 May 2016 16:56:37 +0000
(09:56 -0700)
We don't need to use f2fs_bug_on() to treat with any error case when allocating
a block during recovery.
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 2b2532903b433274e0c5d28ff0af33311290452b..6303b2a38c34741bdefbe26855375775410c65af 100644
(file)
--- a/
fs/f2fs/recovery.c
+++ b/
fs/f2fs/recovery.c
@@
-460,8
+460,7
@@
static int do_recover_data(struct f2fs_sb_info *sbi, struct inode *inode,
*/
if (dest == NEW_ADDR) {
truncate_data_blocks_range(&dn, 1);
- err = reserve_new_block(&dn);
- f2fs_bug_on(sbi, err);
+ reserve_new_block(&dn);
continue;
}