Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2886210rdb; Mon, 4 Dec 2023 10:04:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IFGWsw5QWilfq48IhbDSWzUOUu0t3pQXp0b1ft4hzpvjQi0oukboAb0wFI0g96t5DiHiRw8 X-Received: by 2002:a17:90b:4a08:b0:286:a2a3:1e4f with SMTP id kk8-20020a17090b4a0800b00286a2a31e4fmr1266023pjb.64.1701713082593; Mon, 04 Dec 2023 10:04:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701713082; cv=none; d=google.com; s=arc-20160816; b=Zuqbj06yC4TTr6COL2BOk6PZyayVVzvQ4mLr7tSbLV0PRyosIzZDQt6BDlVj65Azwa Pncc0kP7D/tbIzMz3GnTBdtLYk9ygc2uupmKAg3bp+uec7qDLeJwDiStk1I2PRg55rIX 742rsZIPaL7vaLljc7XRf5XZucWwpaVQpNPGBVzqHLrS5M71BoAWDqcXgp+dPrH3fHFh wRhWD/A38o5r08BC8sjE6vt30oRftQqR35jPNB+e/1c8rNoAiCIRdu924cQujLe11Akj /ODEeB66LOgrp91cfhEcI35H+woODnb52OfH1R4fBxysvipH61WWfYNhjfbKadl/HnOZ ItjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bHgvlR7opcdsXndy/cEVWyidzHDwr/pEoNe0B44Z2W0=; fh=rqHW7NazYv3wAmgqDKAbZUXWTmf0VaM5epB9R4zfTUE=; b=PejrP9R3NGTsn9EGhcbJJRqyQ0ytVmgjTGN+rdHLH2woS2VTslBqC2nZ5dWIPTjqlX BN8mCswD9iqwbzII1gDeprD8k1jSWt/Pfy5oAZw5RFCQCHFlPdK3EBphtX/zWrn6ydqJ kNJ5jeSikZ/TjJv5FEjL4HW6P9tBQ2MgWGsmz1xw6KSf8qiAYPsX8eR3oy8wZUleahqS JuBJcw8msji/GQs0wRxlC532rhMgUAKthz6q40I++LIRn04Yhm2n98r58Hc1oxPTI6A6 OHShz/2nnlb7Khp1bC4rZS5NT/lgI4Ud/kNQd2M18wGLUZ2NyYEz9BoVJex31vige2qZ 93Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JJUpsYKj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id a11-20020a17090a8c0b00b00286a73cfef2si2262811pjo.130.2023.12.04.10.04.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 10:04:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JJUpsYKj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6CC1780AC5A1; Mon, 4 Dec 2023 10:04:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231561AbjLDSE1 (ORCPT + 99 others); Mon, 4 Dec 2023 13:04:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231452AbjLDSE0 (ORCPT ); Mon, 4 Dec 2023 13:04:26 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81E3BFA for ; Mon, 4 Dec 2023 10:04:33 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D72FC433C8; Mon, 4 Dec 2023 18:04:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701713073; bh=0phZvSzPedzW6aghBJdL/2EodTWmVUATApogRYUPDL4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JJUpsYKjhndUIiQOWhL/JnuOSKRB4lZI+bnPJji3zxHnVVmcPDhoE/U0MgdbyqWrs zgqIk78WA38WbHWv8Xn/2rJyK5Aeh7aF4VWtrnadkOBuzDx1IJPFp91pgOS1pZPnX5 4fjfBp8Z4ioemkmo0f5iq/aQ8ngMnYp+fdDEZaBU2uDlTvf35o8taW9N0hE4jcuFjE nQv9bB/Mb8Zb/2tCyrBPTCrNs0QKiKi06ePBjMHppvd/tY00JhKNmm3CS2Axk0AMSu 4iKlvZcfK8Opeqt44AlZe+tmTLGnOZSwiRBaHcX/aEgLNdSvCgggjf/WVmcHTjf9Rf 2UDGeWImdFb3A== From: Jaegeuk Kim To: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Cc: Jaegeuk Kim Subject: [PATCH 3/4] f2fs: check write pointers when checkpoint=disable Date: Mon, 4 Dec 2023 10:04:27 -0800 Message-ID: <20231204180428.925779-3-jaegeuk@kernel.org> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog In-Reply-To: <20231204180428.925779-1-jaegeuk@kernel.org> References: <20231204180428.925779-1-jaegeuk@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 04 Dec 2023 10:04:38 -0800 (PST) Even if f2fs was rebooted as staying checkpoint=disable, let's match the write pointers all the time. Signed-off-by: Jaegeuk Kim --- fs/f2fs/super.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 617340e9ea7f..9a874b4d1501 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -4741,7 +4741,7 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent) #ifdef CONFIG_QUOTA f2fs_recover_quota_end(sbi, quota_enabled); #endif - +reset_checkpoint: /* * If the f2fs is not readonly and fsync data recovery succeeds, * check zoned block devices' write pointer consistency. @@ -4752,7 +4752,6 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent) goto free_meta; } -reset_checkpoint: f2fs_init_inmem_curseg(sbi); /* f2fs_recover_fsync_data() cleared this already */ -- 2.43.0.rc2.451.g8631bc7472-goog