fsck.f2fs: avoid quota fix causing roll-forward drop
PATCH 1/1 fsck.f2fs: avoid quota fix causing roll-forward drop
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 <[email protected]>
--- fsck/fsck.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
fsck/fsck.c +2 -4
@@ -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." );
Signature · 6 lines
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