Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2919502rdb; Mon, 4 Dec 2023 11:03:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IGULwBA92I7ioAb/qmcXpGHZcXfn4c2AYrbwbL53+XSdno7GUgvOqWnUIM38wd7jx8mfzRL X-Received: by 2002:a05:6a00:3486:b0:6ce:2731:e871 with SMTP id cp6-20020a056a00348600b006ce2731e871mr33632pfb.56.1701716601245; Mon, 04 Dec 2023 11:03:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701716601; cv=none; d=google.com; s=arc-20160816; b=A5rgNkeP/rXnKckY5VPMntCrLO1Pt/8BCHKVE5VOqeC55/aoU/cenQTyz6bwaLdBHm jaxR4rZf3enMpAP517O1B2INJcYuJyaDjtKwQr94ZpBN7qfSDXxY3Akr36vWgAnmQay4 RmRuI7KEm+uYq5VznKb3q4HXlgjLbw74TKUzJWkNoDVguaK74N7KH4kJPnoWp9q1tIe6 d3zh3+5nDER3khxW9B4NYKJH6pjAvxrjv3dzlQryimQKV9BXapaHuFpcmdT6fWsRwBv/ nKPyGljNWgkYjShduusOGEN06405nixNKNmE/1LXV2mD2LMvnxIjWNsGqTxIGa+b2NLx UIQA== 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=0yaO/BTFuN+hdaZ3dr+nTdBWWXl4w8z8dbFIh9uyCDo=; fh=imjFzjLG4qph4h5QWRTC1cq+KRDJyzf1iF2L5GqgaZs=; b=NghKhYhAVLmZYMDjTV6bOKqrxCprK/veWU2yiOiHr7wujzObaarhZE1Btw/uyNajQT qVJM8mfzAksPMJlS/dAvOAhaD8S5yu99bo3JPjpDQvm/cD5y9Pdj4uBWUVmeeH1SQCT6 vS19vqIeXoqfO6ESGRdfKTt5dpGb6jD78V50fafjtsTAqCmoR+ktffkuo7ee42PIuwps XhyMRZ2P4JouBUjV2N0vH1Bfc6zjMJRGlHLwI/OhHgtRFwquwtIqEE/UigSUonsdcZJ+ TMwmsTeQ4nuZAveDoCO4GMpPO09HL1+PhGArjow4t2tH/EgiFF1UQQ3eZPWF/GNNOgpR p17w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="HVT1ki/k"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id q33-20020a635061000000b005c615702198si8489814pgl.703.2023.12.04.11.03.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 11:03:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="HVT1ki/k"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 80AA980562ED; Mon, 4 Dec 2023 11:03:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231251AbjLDTDF (ORCPT + 99 others); Mon, 4 Dec 2023 14:03:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230389AbjLDTDE (ORCPT ); Mon, 4 Dec 2023 14:03:04 -0500 Received: from mail-vs1-xe32.google.com (mail-vs1-xe32.google.com [IPv6:2607:f8b0:4864:20::e32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FAA4AF for ; Mon, 4 Dec 2023 11:03:10 -0800 (PST) Received: by mail-vs1-xe32.google.com with SMTP id ada2fe7eead31-4649299d0a0so394762137.2 for ; Mon, 04 Dec 2023 11:03:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701716589; x=1702321389; 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=0yaO/BTFuN+hdaZ3dr+nTdBWWXl4w8z8dbFIh9uyCDo=; b=HVT1ki/kjA/4juD3BVgoIAF1cV99rD2Z5PPysMldRbBX2ol7iK2RzDVBrGIN1eCeO+ hjBF90sfWU96h1MHkSV1nvm99BwcN+rB+PkTNpKtxK3ejEWi0ZjH/zyE2w4pMi1DarQ9 T1Z4CtAS7dMqpv/FqAb3SHfg8MZlac6VKI2vrAPN4+BWThEhsP6azo1HZpmgZEA2nVXe Zge7DRbLN/fBc8T7oZ2rUl/oUeZaFww5JWsm8PcKietdEl2V4QjgFD0CP1WX2mrWS5jt N1kVhfYTOsqpqW2uoGZNoUKWqvK3w2fmDz4f1HniAMsEGjOuiZctiDGD1cof8Hcn/x7y mBWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701716589; x=1702321389; 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=0yaO/BTFuN+hdaZ3dr+nTdBWWXl4w8z8dbFIh9uyCDo=; b=atAnvkYcq63pWOJTUOi8RJDVb+I4B8F5Qg+It8g0NfEGS7MzjsKrPxnitckdnqjziN yjqZKl/NzZTmz8jmgmtZfDpTPpUWzsLTZ3A25NdT1u9SLgTGob29qvE5HmMQa5dvtq9j h42HYFPxqc1pitwmNVL1fNKiJJtmEeOzKt7kvoV/mfHOy/1a7USEiSn6sfhtHR31RIyh 06aFdoIpPdp3qtia27nNDTP+WYzP5eQ5TxJq5hhjyfUw1VecmjP57mwehCJnDIhRgWlb Qpg++DCLkv8eOrWVjWbPOAEw8ecI44RgvasR17+TpEINpcY+ZHgiCbefIMJ56GS35dBc CVZA== X-Gm-Message-State: AOJu0YwjOirJAwvIx9h6bCLX4FG4PaLLxs2c1YjSzTR8xy3z7uHX95NL emZWagth97//Kaw9HWndPdvBdIeEfq3ymEOOhcQ= X-Received: by 2002:a05:6122:1797:b0:4b2:c554:fbb1 with SMTP id o23-20020a056122179700b004b2c554fbb1mr2666171vkf.19.1701716589352; Mon, 04 Dec 2023 11:03:09 -0800 (PST) MIME-Version: 1.0 References: <20231204180428.925779-1-jaegeuk@kernel.org> <20231204180428.925779-2-jaegeuk@kernel.org> In-Reply-To: <20231204180428.925779-2-jaegeuk@kernel.org> From: Daeho Jeong Date: Mon, 4 Dec 2023 11:02:58 -0800 Message-ID: Subject: Re: [f2fs-dev] [PATCH 2/4] f2fs: fix write pointers on zoned device after roll forward 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 pete.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 (pete.vger.email [0.0.0.0]); Mon, 04 Dec 2023 11:03:18 -0800 (PST) LGTM On Mon, Dec 4, 2023 at 10:06=E2=80=AFAM Jaegeuk Kim wr= ote: > > 1. do roll forward recovery > 2. update current segments pointers > 3. fix the entire zones' write pointers > 4. do checkpoint > > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/recovery.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c > index 16415c770b45..d0f24ccbd1ac 100644 > --- a/fs/f2fs/recovery.c > +++ b/fs/f2fs/recovery.c > @@ -917,6 +917,8 @@ int f2fs_recover_fsync_data(struct f2fs_sb_info *sbi,= bool check_only) > if (!err && fix_curseg_write_pointer && !f2fs_readonly(sbi->sb) &= & > f2fs_sb_has_blkzoned(sbi)) { > err =3D f2fs_fix_curseg_write_pointer(sbi); > + if (!err) > + err =3D f2fs_check_write_pointer(sbi); > ret =3D err; > } > > -- > 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