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(-)

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
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to