Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb40d618 authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

f2fs: don't clear CP_QUOTA_NEED_FSCK_FLAG



If we met this once, let fsck.f2fs clear this only.
Note that, this addresses all the subtle fault injection test.

Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 6d52e135
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1267,8 +1267,10 @@ static void update_ckpt_flags(struct f2fs_sb_info *sbi, struct cp_control *cpc)

	if (is_sbi_flag_set(sbi, SBI_QUOTA_SKIP_FLUSH))
		__set_ckpt_flags(ckpt, CP_QUOTA_NEED_FSCK_FLAG);
	else
		__clear_ckpt_flags(ckpt, CP_QUOTA_NEED_FSCK_FLAG);
	/*
	 * TODO: we count on fsck.f2fs to clear this flag until we figure out
	 * missing cases which clear it incorrectly.
	 */

	if (is_sbi_flag_set(sbi, SBI_QUOTA_NEED_REPAIR))
		__set_ckpt_flags(ckpt, CP_QUOTA_NEED_FSCK_FLAG);