Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2919620rdb; Mon, 4 Dec 2023 11:03:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IEKudMYJkZ5ArVL8kbAyJ4sdUMZRgFhWpftdF1AK5D5t0LxZsQm5PLwzAj31U9T5D4x63ZB X-Received: by 2002:a17:903:40cc:b0:1cf:d2c3:2865 with SMTP id t12-20020a17090340cc00b001cfd2c32865mr4860789pld.40.1701716610433; Mon, 04 Dec 2023 11:03:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701716610; cv=none; d=google.com; s=arc-20160816; b=aZzqI9m6+xZQWH/F2J/24z6/tSHZCi+LBWBRDFyqMRJ2LD2U2fX21+BOcgAPdZXi2D +WzgojeERJlgCKdVMm0Q+OqaqUsy7VLeW7BJ64SuBNOZSTLRWYzVsa2wiyx/3/VQpt5v K2ZfI6t1fjKPM8tP8nicMVxP7NNhK9CGcJ7Ec6abxnbzLjkHbs9l2EIHXUbJujV71Mq4 3AjTkwPdSrOTF+913qMOqvpTOKszq6aUvqYuWSUOUKOG2aQ+BnXUsx0EPpyGnwwoN6gH wP9JGM6LCW6x44aRYqbXR9HcBj/zhVNuDcpNLm3vDLvh9CUEgWzUU3/9Wm8uo7UHfYgU tRww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=r8OsxNuHP/Mk0jzn3oUdmiDmSoUgRFcHUL7SKw08Lik=; fh=imjFzjLG4qph4h5QWRTC1cq+KRDJyzf1iF2L5GqgaZs=; b=fCAcgxpI79k4y3kst14/nAK/tFC9bkCx6oReTVaSXlzc4M1BrnFk62P9aid7XodX/B DbpZN7QTDcG79haVyqkrN0Lhuhr87vj0lvJH9lQdz6f/nYS4UnHTqVgVYdD6qO9s3Ra3 jGfxT0bjFJkfXf/hTnf8iotrEZYx48DHUvxXZZc+rKkf/Kqy+LvOA6tWzkLxcPvGbw9L 7R5l4hL16qm4Ou6+arRVgaAaslgUfoVsrDmAfrA4fT3SL4KzKc0a5Bw48FurfvJLBJKV Dxid/pv5wcjrgWP6F8FKg2Bdnb27UJQJ2yLGU54l1Qnk/b26BQKosByflE3xo3j6RUwq 39nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=T6I1TcbO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id bx29-20020a056a02051d00b005b106cd44casi1931476pgb.145.2023.12.04.11.03.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 11:03:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=T6I1TcbO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 2FAAF8057B03; Mon, 4 Dec 2023 11:03:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231327AbjLDTDO (ORCPT + 99 others); Mon, 4 Dec 2023 14:03:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231266AbjLDTDN (ORCPT ); Mon, 4 Dec 2023 14:03:13 -0500 Received: from mail-vk1-xa34.google.com (mail-vk1-xa34.google.com [IPv6:2607:f8b0:4864:20::a34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F5AAB2 for ; Mon, 4 Dec 2023 11:03:19 -0800 (PST) Received: by mail-vk1-xa34.google.com with SMTP id 71dfb90a1353d-495d687b138so1157927e0c.3 for ; Mon, 04 Dec 2023 11:03:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701716598; x=1702321398; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=r8OsxNuHP/Mk0jzn3oUdmiDmSoUgRFcHUL7SKw08Lik=; b=T6I1TcbOttluAnwwZfPB0MHmBYk2fZZtv8IH9x76lUCfVl86sZ8QntmsVl9Wwh2d+i 3CZ0yPOROooSbBOAaCl19R/NeSYdyhlJc8MdeRn61Ld2QiD7KSgYiSMQwWQtDD8IHqUM Ngvri/ITieowMJlQkw9Vl7HhxatH6IT/cWe2AEqvUCuKdHuTEZ35qq+c2xErY8MB1Jw1 Jvur6ZrjWKsdfxcikuu1LwNe0FgtEbYd6dZk6hffWUXhw52nNQeoeR0uB6pRivi+mczi giZLW6o2X5pIj1ilKOuk7APX0sg0QBB0J7tBpZDMOVyov02OfgCGbbC3E0sLU0lEvNYj YACg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701716598; x=1702321398; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=r8OsxNuHP/Mk0jzn3oUdmiDmSoUgRFcHUL7SKw08Lik=; b=izuXe48CWSNWSv0jLHW45arDh8+zhCCzvTLS+t7DHResOXQMjQpYlzE6U33vSlka2v 7waRPy6JNdIcNNINuJVek412imgC0FZNmBb5TDGJ4GhsclxOvM1fls7OJz6lkzbjWCjz 577Lb6puA7dIFBq5KZKQJ2T1bsZNgDlMD/HJBZKTy6RWx0eJbRywnEcpw3yHQQwVISYr 5bzXXOh1DAe8waytMQNYxZ13hizXZNHIOVcC/UmgBrCxAFLPvgnb9lsrzI1DDJfUdux1 6I0NcM06/RV9M/0ueLBE8Z1kEYe5ZhCjQmKqrsUK7jkZJqmg+BduXHAXlBUEAa2LjOoz atmg== X-Gm-Message-State: AOJu0Yyqa4RDeCBDlqRHhOvDakYQEMqjumqDHESCM3S6L3PSf/4a9BXL FC+PBtcbTFd1K+5qvqPMz8wTGpfnW3m5ZsLB6+k= X-Received: by 2002:a05:6122:993:b0:4b2:e534:b5d1 with SMTP id g19-20020a056122099300b004b2e534b5d1mr1412281vkd.33.1701716597485; Mon, 04 Dec 2023 11:03:17 -0800 (PST) MIME-Version: 1.0 References: <20231204180428.925779-1-jaegeuk@kernel.org> <20231204180428.925779-3-jaegeuk@kernel.org> In-Reply-To: <20231204180428.925779-3-jaegeuk@kernel.org> From: Daeho Jeong Date: Mon, 4 Dec 2023 11:03:06 -0800 Message-ID: Subject: Re: [f2fs-dev] [PATCH 3/4] f2fs: check write pointers when checkpoint=disable To: Jaegeuk Kim Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Mon, 04 Dec 2023 11:03:28 -0800 (PST) LGTM On Mon, Dec 4, 2023 at 10:06=E2=80=AFAM Jaegeuk Kim wr= ote: > > Even if f2fs was rebooted as staying checkpoint=3Ddisable, let's match th= e 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 > > > > _______________________________________________ > Linux-f2fs-devel mailing list > Linux-f2fs-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel