* [PATCH] fsck.f2fs: avoid quota fix causing roll-forward drop
@ 2018-01-19 6:31 Jaegeuk Kim
0 siblings, 0 replies; only message in thread
From: Jaegeuk Kim @ 2018-01-19 6:31 UTC (permalink / raw)
To: linux-f2fs-devel; +Cc: Jaegeuk Kim
If we write checkpoint, we'll drop roll-forward recovery, since crc in
checkpoint will be changed. Let's avoid it as much as possible.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
---
fsck/fsck.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/fsck/fsck.c b/fsck/fsck.c
index 1211729..ebd21d0 100644
--- a/fsck/fsck.c
+++ b/fsck/fsck.c
@@ -1690,12 +1690,10 @@ int fsck_chk_quota_files(struct f2fs_sb_info *sbi)
qtype, ino);
f2fs_filesize_update(sbi, ino, 0);
ret = quota_write_inode(sbi, qtype);
- if (!ret) {
- c.bug_on = 1;
+ if (!ret)
DBG(1, "OK\n");
- } else {
+ else
ASSERT_MSG("Unable to write quota file");
- }
} else {
ASSERT_MSG("Quota file is missing or invalid"
" quota file content found.");
--
2.15.0.531.g2ccb3012c9-goog
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-01-19 6:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-19 6:31 [PATCH] fsck.f2fs: avoid quota fix causing roll-forward drop Jaegeuk Kim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).