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:
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
|
blame
|
history
diff --git
a/fs/f2fs/super.c
b/fs/f2fs/super.c
index a6923041f41a93cf5181eef2bf2497ff75296583..3275e733b28eba6093976fa14e80ab77e2235abe 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);