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:
dd11a5d
)
f2fs: handle error case with f2fs_bug_on
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Wed, 20 Jul 2016 02:30:06 +0000
(19:30 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Wed, 20 Jul 2016 21:53:22 +0000
(14:53 -0700)
It's enough to show BUG or WARN by f2fs_bug_on for error case.
Then, we don't need to remain corrupted filesystem.
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 5d4461f2c26642b8014e0c770ce093bff6428df8..9e652d5a659bd3377be2a818e0f8e1c61e7b4272 100644
(file)
--- a/
fs/f2fs/recovery.c
+++ b/
fs/f2fs/recovery.c
@@
-482,6
+482,8
@@
static int do_recover_data(struct f2fs_sb_info *sbi, struct inode *inode,
#endif
/* We should not get -ENOSPC */
f2fs_bug_on(sbi, err);
+ if (err)
+ goto err;
}
/* Check the previous node page having this index */