Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1265018ybm; Tue, 21 May 2019 11:09:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwqNnOkIzh1gYh6Mx/U/IJvWk9FW8UxCncQoEtML54EmoAGLBEC5qPVntBNMFAE9wPvZgc X-Received: by 2002:aa7:9ab0:: with SMTP id x16mr81439909pfi.201.1558462172501; Tue, 21 May 2019 11:09:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558462172; cv=none; d=google.com; s=arc-20160816; b=bFv4R4GMsNbkgtlphNKGd4gSeKwP8parAXp2WUXbE67fb4ZmZo+Il/49ltCKcLjAuy wtKIQkxdoU0D6Sg6grmz8aKli8CA7RAuOpXeHqgbEoLlPk4NLv6aUOtXeHP3lmasj4bu R01sxqq7CG4T/rMgmrcX53LlGGi8av/uJQodrGbesM8uEXKFpStAjnIW7EUYifpjBgQM 6gigDy0xAOH8K45jz+hKJYqxLzvvtetT3NAZKkiPK4PQiWaW2X6DTUY7RwrOEC+8UunE 324igUCJYu5RR1mDNySIqs5QqE8H/wKIPTfQcl7J9QebMMS7huk9wKYisRK0wh1t+OBk /ytA== 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=6r8wQaF11zIp/EjEuoCb2mjBf+K5Y0WCwFfNH/s45cg=; b=pZpny231jJdMAMSFZK9n8yjAMBrufCtaPGY92jEtf8/rgzwUCeMk0uCyDyTfCf7O/b krug4v3gVwRWeb/JS6WjhtHNlHVEgP1CkJxjGz8xIH/p0Yh3xDn9k9+ImTt+aUBNTd8c UPqkUb3aiQ1OiGCviDwi0Pnno3pZaKIck65W9j7DRyF8kWMCRAtdeV6/bxlUNq4r+i3W m0vKOCESXF9UmG3by5cfokVzmIMF5BXvloH3c6jlz1bb82pwrLUB3F09hmQi+aUsUElv STVe0Y/soogoW30DSExHjODArj/dWI03lU98L9OcCT0XPWUE7tDRUeSjIONegwZQQxRj sOhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ddvXiv8E; 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 m14si14431934pgj.377.2019.05.21.11.09.16; Tue, 21 May 2019 11:09:32 -0700 (PDT) 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=ddvXiv8E; 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 S1729171AbfEUSG1 (ORCPT + 99 others); Tue, 21 May 2019 14:06:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:55618 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727898AbfEUSG1 (ORCPT ); Tue, 21 May 2019 14:06:27 -0400 Received: from localhost (unknown [104.132.1.68]) (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 09A0C20851; Tue, 21 May 2019 18:06:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558461987; bh=KeXQdf7LxJFZjE2BBsFH6zgWI0BnO6HokdbTkxtyYPA=; h=From:To:Cc:Subject:Date:From; b=ddvXiv8EIA6w84VHw+0NPtO+HSyrP77FHhH8dJLALrMH5S4IoYkz+FhBmgya4giph h4yPCfXwy1ZU4mc3+B32EkwUz4CnRiMSzCxG9SJCXnIW31X39wIyF4Q5VbbbVHl550 4P1Upotux1pnA15YGFSTnT8OXjV5pC8qm5X6QQ8A= From: Jaegeuk Kim To: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Cc: Jaegeuk Kim Subject: [PATCH 1/2] Revert "f2fs: don't clear CP_QUOTA_NEED_FSCK_FLAG" Date: Tue, 21 May 2019 11:06:24 -0700 Message-Id: <20190521180625.10562-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 This reverts commit fb40d618b03978b7cc5820697894461f4a2af98b. The original patch introduced # of fsck triggers. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index d0539ddad6e2..89825261d474 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c @@ -1317,10 +1317,8 @@ 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); - /* - * TODO: we count on fsck.f2fs to clear this flag until we figure out - * missing cases which clear it incorrectly. - */ + 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