Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp463879rdb; Tue, 19 Sep 2023 00:06:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEnKkgM9IU5uQD2gvZlCg1yCiNrLxp3F2OBpxpmmnXBzRXERdNzGrN6riBXGyFGLuw9kbBS X-Received: by 2002:a17:902:ced1:b0:1c1:f27e:a55a with SMTP id d17-20020a170902ced100b001c1f27ea55amr11723262plg.46.1695107168019; Tue, 19 Sep 2023 00:06:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695107168; cv=none; d=google.com; s=arc-20160816; b=XsPtm9J3e6MwwANf3iBx5PGvJ1KS6LbaJjXlEv2uq83f1gTnefcPoBA/AYO6t9h7qG fWoRrEaism9ZONZQKzNg68N9SAh2kpLTmgCrhwY781WyTYyL1/vuKh7Bg/y4Xt5m3FRk jEAqrqCEKCSSJ+/x5fib0GFw/el+L/+iZyov7YI0ZdWqneF7wr7n8YeYm01HnmIBiqvo CXNTARoD6O+eGWwX1OlcCk6oB0T+4FNVu8HElv6y2UK4/MTmjMOoQ5UpxdQZ4wIiI6h9 jJRJr/KV6GVk3GHEPByjqrmlM6he2JNKg3cQ5DaGqtdC+xhLTPdZs84BYnTwnYb8586Z LhmQ== 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=oqmyw7VJeqHD8iPpgh4YPr5AogAt6MQN9sHGZpQ6Xjk=; fh=Ex900LeWemyNv8v7eVaT25lhS5hAbxvedq4sD5vnIX8=; b=Dgd0MFvblQljp1L8Joyix+rsarJOP1lecJAJ1wmZWRBvvBZNcfUN16Tp5S5Ql+snk4 yjcblagU8zhFjJScEuxoAcLvdhk+Lc7tqA9v10G7FPx3pOREfEKKsPSQs4B2EQ529ge8 URFaPSsdw+wHD0toXUaD+q79nHLYm2wzdpUj3+kOA0gwlJXrQP9NzwRhD+cweVAfJ2yv U1ERuFQdJjkWCZx/Tx+y0QdcUI6cxIKKpNcgzMdNqlsImo0139E65F/10MAwdsmExVjE GhukgYnUN9HdDgF9Fv8AZ7Gcok+NG9mSoJhLjXkPLq4ljAH3HfBxe0+x3QaGxRF4pS7h Am+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=E4YYIjUp; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id kb14-20020a170903338e00b001bdfb3c4e0asi9087852plb.326.2023.09.19.00.06.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 00:06:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=E4YYIjUp; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 8D7AC8122288; Mon, 18 Sep 2023 21:51:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231553AbjISEv6 (ORCPT + 99 others); Tue, 19 Sep 2023 00:51:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231560AbjISEvs (ORCPT ); Tue, 19 Sep 2023 00:51:48 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D916B131; Mon, 18 Sep 2023 21:51:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=oqmyw7VJeqHD8iPpgh4YPr5AogAt6MQN9sHGZpQ6Xjk=; b=E4YYIjUp3IuVjZH5MCxn9/nKpu Hh21HO1FgQ5l0yFuR8lBrzTKjwN77QtvHgH7HsY6/hwMfJWDY0UAh02WnRXPPElykkpAlqZmBWeIV eNkuj2Gp/o8PjVKAYe0nJcDm29dA61si/jGvCAX6vVu9nX7clOZR5ZJasF8aWG3RXxcK70KOAmQiS V/o8WI5+8jOwXUceYUQVhHOFWdoUK9g3uIL+Auum/J8H+YJYEL2+b0lOqxTCaKY/nooLebuqCi4G5 4dUpHT0k3B87XotVNZH1TIicqqawgo16ESNqdHcj6iQv7Mn5fdND8PoDTTmUqSP6m1861PlUDEO9e yKKdIwGg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qiSi4-00FFlO-3N; Tue, 19 Sep 2023 04:51:40 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , 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 Subject: [PATCH 15/26] nilfs2: Convert nilfs_lookup_dirty_data_buffers to use folio_create_empty_buffers Date: Tue, 19 Sep 2023 05:51:24 +0100 Message-Id: <20230919045135.3635437-16-willy@infradead.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230919045135.3635437-1-willy@infradead.org> References: <20230919045135.3635437-1-willy@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Mon, 18 Sep 2023 21:51:58 -0700 (PDT) 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 = folio_buffers(folio); - if (!head) { - create_empty_buffers(&folio->page, i_blocksize(inode), 0); - head = folio_buffers(folio); - } + if (!head) + head = folio_create_empty_buffers(folio, + i_blocksize(inode), 0); folio_unlock(folio); bh = head; -- 2.40.1