projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8bef79
)
f2fs: avoid ENOSPC fault in the recovery process
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Thu, 19 May 2016 18:57:21 +0000
(11:57 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Fri, 20 May 2016 18:43:04 +0000
(11:43 -0700)
This patch avoids impossible error injection, ENOSPC, during recovery process.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/recovery.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/recovery.c
b/fs/f2fs/recovery.c
index
f89b70e
..
3d7216d
100644
(file)
--- a/
fs/f2fs/recovery.c
+++ b/
fs/f2fs/recovery.c
@@
-470,6
+470,10
@@
static int do_recover_data(struct f2fs_sb_info *sbi, struct inode *inode,
if (src == NULL_ADDR) {
err = reserve_new_block(&dn);
+#ifdef CONFIG_F2FS_FAULT_INJECTION
+ while (err)
+ err = reserve_new_block(&dn);
+#endif
/* We should not get -ENOSPC */
f2fs_bug_on(sbi, err);
}