Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1528568rdb; Wed, 20 Sep 2023 11:36:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFYJcXd1CNqcat9qTJZqh+fRcgRaXM3NlQeAZ0GclXeGNObCzyz4ZrykpfkXExq3dZoSEqH X-Received: by 2002:a17:902:e743:b0:1c3:9544:cf63 with SMTP id p3-20020a170902e74300b001c39544cf63mr4379371plf.23.1695234986587; Wed, 20 Sep 2023 11:36:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695234986; cv=none; d=google.com; s=arc-20160816; b=SovsPdoGPq7NhlKTPGLO5iAN5mJAiQK1dr2uQogmE0b2xsoIXvXh2YFr3jPD55sqd+ ym8hFthBRTRFlIKhY668Ptb09smPLQXfjgR1RW9IMIYe2wf23EqcVN0JuZ3yomAS8Lj4 FrzHpKI42h2GMqX1h/1y3lkUj3ZkPwrAS9nRjbhDwmM+GXkb2PlagPdnIQoteC9a/Qeo C2F3zV7PUsWV/CdLT/JKzO3rREBdp14eVlSy/K7seWZOfbKzUj1BPxoCj35nJo/jBiY9 bd8GdLfBz1gQwKxAfUTGdCIezfInOAHcPBtLY7w7VhbyGbiNOtZUu889vUT8hxEdzLYo nMkw== 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=W2Sxc2lzUzNR93PpRUd+yVO8Zh7S3vyEBNQBpNy/0XM=; fh=sRR9gJ37ChtesxPb1iPEABChem0KgDKda8d5/HUMrrk=; b=gD71ibx49AjKVGq7KXIjZFg6noEXDjHQe0i3jDe8zgvMLaWEIMmSmUbpe3BK90mwaH 69A3eFRtUiZappvhU8p3BWXgTkq99zMOPwXAimE0gWfANk6JP6gF2ZEoJa8sQTEHVz6c plQYctB7tIVbY2X+UxdEb7hux+2Nmf+Kta9AtqnyLS5zypA+inkJkhM1Y3i0eDqPWkUT Kd3/q1n3WuQchHPofgH0QwEIKd3M7sC1yS1Mhg0kzsExDxyKt6o3kGnD1oVjI6+8oGSF vmk7tL0dvyQ3X+/1PsQOGyAJe+i338Wpk2FkwlqXehEfC1KPqyn+CQ7tSzBT35ecj+ZL d32w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nAIewok8; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-ext4-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. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id w18-20020a170902e89200b001bf1ea2b868si1402584plg.10.2023.09.20.11.36.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 11:36:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nAIewok8; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-ext4-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 A6FBA819ADB7; Wed, 20 Sep 2023 03:01:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234357AbjITKBv (ORCPT + 99 others); Wed, 20 Sep 2023 06:01:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234366AbjITKBr (ORCPT ); Wed, 20 Sep 2023 06:01:47 -0400 Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E60F3DD; Wed, 20 Sep 2023 03:01:37 -0700 (PDT) Received: by mail-ot1-x32e.google.com with SMTP id 46e09a7af769-6c0a3a2cc20so4174913a34.0; Wed, 20 Sep 2023 03:01:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695204097; x=1695808897; 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=W2Sxc2lzUzNR93PpRUd+yVO8Zh7S3vyEBNQBpNy/0XM=; b=nAIewok8Jz4uPNzrk5L5OdNdqKLfqMiMI6qHZXaKSFvdbq123fGQyOYG0RXfm++m/1 3JjCXqpoMC85ym+PhL2l/JMYVwA+zVNV2PBR/StsG66Sq3y/IMsGUVvt/+/uzqKI9A+6 0Yi5B3KcgMhzNbalG9yQyYgQpM8vqsSRNORaE1cd3798JYRmEriwoOACwvPe4hNkyFNn /wFjqzn0C0JRWs7CLlOWNaBY8HXVWaE1Ju4aBSogR1+ed4dnxkJkzVmX1Ih29GFMtoue Ln80b+TeysRDKz/alh3/lA2ouGnSyMQDPP4AHG2FNN+CHEW/Scx+TlyZGqSmHK+LGg9S tvWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695204097; x=1695808897; 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=W2Sxc2lzUzNR93PpRUd+yVO8Zh7S3vyEBNQBpNy/0XM=; b=gIvvxszTJrsH/szJJLi2PD1s/GuTRxbUz7SvLKWdtm7ai7mQlubOESzpYKFDYvfqSl PiXKunG6/a7GWIyF+EPzwX1940++CL4CqzTc1H69cD5bVq68hTGgPwl1Or4di8XcuuN1 T1dA+8wB0e/Bjffs1znhjrXbhEdjXW04HXZrSHJza1WlYh1rxNkIuk08ANWxmBIkyGrZ LIvfxGcPcY3HWhfiy48PzlDHTK35YQnPmtY/ffyPgrZbWombTZlZh21tIjcFBjEGHf5u nnA2xpB0WIY+SQpvzSIGwM9DZjlKVkYkHtKtY5SUnF+wrBZKniD8bS/eHvB8n09ie01s DLJg== X-Gm-Message-State: AOJu0Yw/mqfEf2UfDDgP+wga3JEirtsJfQkOsHWz8nzwS87p6X6sSQKB vchyC82oCOGQqbqpyFnbIYassEoribuzPrsOSAA= X-Received: by 2002:a05:6830:102:b0:6b9:b226:d08e with SMTP id i2-20020a056830010200b006b9b226d08emr2148062otp.34.1695204097042; Wed, 20 Sep 2023 03:01:37 -0700 (PDT) MIME-Version: 1.0 References: <20230919045135.3635437-1-willy@infradead.org> <20230919045135.3635437-16-willy@infradead.org> In-Reply-To: <20230919045135.3635437-16-willy@infradead.org> From: Ryusuke Konishi Date: Wed, 20 Sep 2023 19:01:20 +0900 Message-ID: Subject: Re: [PATCH 15/26] nilfs2: Convert nilfs_lookup_dirty_data_buffers to use folio_create_empty_buffers To: "Matthew Wilcox (Oracle)" Cc: Andrew Morton , linux-fsdevel@vger.kernel.org, gfs2@lists.linux.dev, linux-nilfs@vger.kernel.org, linux-ntfs-dev@lists.sourceforge.net, ntfs3@lists.linux.dev, ocfs2-devel@lists.linux.dev, reiserfs-devel@vger.kernel.org, linux-ext4@vger.kernel.org, Pankaj Raghav 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 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-ext4@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 20 Sep 2023 03:01:52 -0700 (PDT) On Tue, Sep 19, 2023 at 3:47=E2=80=AFPM Matthew Wilcox (Oracle) wrote: > > This function was already using a folio, so this update to the new API > removes a single folio->page->folio conversion. > > Signed-off-by: Matthew Wilcox (Oracle) > --- > fs/nilfs2/segment.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/fs/nilfs2/segment.c b/fs/nilfs2/segment.c > index 7ec16879756e..94388fe83cf8 100644 > --- a/fs/nilfs2/segment.c > +++ b/fs/nilfs2/segment.c > @@ -731,10 +731,9 @@ static size_t nilfs_lookup_dirty_data_buffers(struct= inode *inode, > continue; > } > head =3D folio_buffers(folio); > - if (!head) { > - create_empty_buffers(&folio->page, i_blocksize(in= ode), 0); > - head =3D folio_buffers(folio); > - } > + if (!head) > + head =3D folio_create_empty_buffers(folio, > + i_blocksize(inode), 0); > folio_unlock(folio); > > bh =3D head; > -- > 2.40.1 > Acked-by: Ryusuke Konishi Now, I've seen all the changes to nilfs2 including the last patch. It's almost a direct conversion throughout, and I don't see any issues with the nilfs2 part other than the build issue. With all 26 patches applied, nilfs2 is running without problems in actual machine tests including stress tests. Thank you very much for your efforts. Regards, Ryusuke Konishi