Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3315745imj; Mon, 11 Feb 2019 18:34:19 -0800 (PST) X-Google-Smtp-Source: AHgI3IarlSen0icU+FbdCX8R03ga5m1HZovMXdC3gtiyfNuRwpxbDI5yIsTnKesUhbWJqxVDnvMM X-Received: by 2002:a17:902:8d94:: with SMTP id v20mr1606922plo.194.1549938859669; Mon, 11 Feb 2019 18:34:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549938859; cv=none; d=google.com; s=arc-20160816; b=toTX8xt4oJE4jNsegE8l0qsKmcQ4ljqjXjmYNDZRGGLe9uO5XTxkLLIOInx+49S2d/ 8mCUx5/i43xEHCx1jBIiXknDPVQFjY/mokZ2oR4e0dbI+0EY+2nwweFhEI/KFcjRHgS2 3PA75OhI/G8nHirRGNKEn3h5kkLJO+zQYsA2h1/UhHhmQD6SELtD/3Mkm9GP5tYY20zs RVhOFiza/FcQ80d6uBq4s/bvuccHDDA99v9vCUBeqQIAYLreRO5P7rZxnGVliARkD4yp R4b1uvSMpowm3O00qhNOmnHFY3xG6R4JCoRbU54/5bfwisuzpAr6YrvnEzYBqxWhSs3g FfOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=qTv9LehZFkVlJyGgDW2W8H16ApHEx14ryOIpao2+qjk=; b=1EKD4XaCBctR4Mesv6Gl4asNK+hd67gxZZ5m37isMBhaLMG7BNZygauOxyKsKGxwV4 DhiRdqPBw/7Fjayglj/g6OwGsZ4it1Tmk2wjPaNLGHWzIniY0tBV31T5ane4OSKPUXk+ qdFLUefrw5/fWOHLFp/gNcCv5eO8OeS1eZTOa72PEaWiT6VUcPMESRxOOY7iBB4RvwaF sTS1KUVuLhZV3gW7gv8oEwZw+C3A1uhr0OdiYEG+1E1yUB9FnLdNEVrQnGG0H9ROsa9R 1q4sCsuGkOfpvOdkQuVQqkgY0nHxZGPGwteC4yDytMPy3rnH+gxl84XkzbskFILkr12B EYxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SPewK2pO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si7145530pfn.180.2019.02.11.18.34.03; Mon, 11 Feb 2019 18:34:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SPewK2pO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727652AbfBLCdp (ORCPT + 99 others); Mon, 11 Feb 2019 21:33:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:45456 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727265AbfBLCdp (ORCPT ); Mon, 11 Feb 2019 21:33:45 -0500 Received: from localhost (unknown [104.132.1.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C94492070D; Tue, 12 Feb 2019 02:33:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549938824; bh=5thc25MoSC5++AcwkSrqH6f/WBc14Hc54s3B34ocKIw=; h=From:To:Cc:Subject:Date:From; b=SPewK2pO55Zybj4OxOSUQMh8cn06GE4O1bpPsrrOjTfF6wE7uRaije0WWOpNtG+g/ gePYl/BpXRKY78pua9Hh6LbmZAKG6FNFu0InpL+RpNeusJv1oy+tvI1GnCMsFaGO+j 73EudO84bj4jEuV7HScpR1K8bKUG4830PLL4C6q4= From: Jaegeuk Kim To: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Cc: Jaegeuk Kim Subject: [PATCH] f2fs: don't clear CP_QUOTA_NEED_FSCK_FLAG Date: Mon, 11 Feb 2019 18:33:43 -0800 Message-Id: <20190212023343.52215-1-jaegeuk@kernel.org> X-Mailer: git-send-email 2.19.0.605.g01d371f741-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If we met this once, let fsck.f2fs clear this only. Note that, this addresses all the subtle fault injection test. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index 03fea4efd64b..10a3ada28715 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c @@ -1267,8 +1267,6 @@ 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); if (is_sbi_flag_set(sbi, SBI_QUOTA_NEED_REPAIR)) __set_ckpt_flags(ckpt, CP_QUOTA_NEED_FSCK_FLAG); -- 2.19.0.605.g01d371f741-goog