OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec325b5
)
f2fs: need fsck.f2fs if the recovery was failed
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Wed, 3 Sep 2014 00:19:04 +0000
(17:19 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 9 Sep 2014 20:15:04 +0000
(13:15 -0700)
If the roll-forward recovery was failed, we'd better conduct fsck.f2fs.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/super.c
b/fs/f2fs/super.c
index
a692304
..
3275e73
100644
(file)
--- a/
fs/f2fs/super.c
+++ b/
fs/f2fs/super.c
@@
-1083,6
+1083,9
@@
try_onemore:
if (err)
goto free_proc;
+ if (!retry)
+ sbi->need_fsck = true;
+
/* recover fsynced data */
if (!test_opt(sbi, DISABLE_ROLL_FORWARD)) {
err = recover_fsync_data(sbi);