Message ID | 20231114084436.2755-15-konishi.ryusuke@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1727885vqg; Tue, 14 Nov 2023 00:48:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IH73nDH3KIrUq42EenRJYJF3juWgLcDvc9OtvP/x7T0/xkTFWfS4LR+5bEkEeGCRepcLFPs X-Received: by 2002:a05:6870:4206:b0:1e9:ec03:80ba with SMTP id u6-20020a056870420600b001e9ec0380bamr11699155oac.18.1699951681200; Tue, 14 Nov 2023 00:48:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699951681; cv=none; d=google.com; s=arc-20160816; b=omudo6ExF2/Nc5UQ3fsOgTKEQ3RG3bDWew7/deFLiq53OvSzDZjSPTUwEuK70UJmgm PQzgc4v0iQZ6t0ErPVripasbiH5sJFN8Ox+8qPQpyYJu++BjppQtaODgzYnr8j8n37kf tBSP1ndnnsLMsRiwvltFbYc6HMXB6VVh65f5nOu2poajHXRldasmyVG/L5yqlptGKCP3 ieGDwZLES7k53hn7I87F5gidSQvJHSuZwgi9P/ZmfVNaCrgr9zftX3Nr18gKaDlYoXAg ThevLpuc5bvT88aqmpUpbo6f4qTUC29kUNcele5GTLGzykAJHgGxfcBCB0H3NEJF54V7 ozfQ== 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=zf/f9iBOx5zFbOHUi2L8dYuwfOZwOV/VjcIWW5aZNCI=; fh=c4gLbwT9pvttlQWxFI2VesWIZ95B4IQ3bBh75IOono4=; b=Ybc6gp6byM8S4C73XWJ6wKK63WMnsxJV9+UIAzgYQLzEu4wNa357qsf4qs2W0vO3xN HzyCJwBrtvCCv2Rd8BnAcOpOaz2aBzHUnTKYtubh58h+JXxdOPTokJ/L9f7nP0dAIdDN tYhRT2gxGmFIECObKbNEAPdcPfgr97XNlF8OiEz2Q4dzKxQnonzemajw9PogxZLTx9lg 3OMiCGhnfHAR+SPqZndapOGpdnYoB5Of9DoMeHMYfNyYIJv2abB6pBgSaUCZmY3P5VWI gb3b1R8OxdPwOaqER91SPynzTMCpmW2zIf1FqZGkbu3NGPMQ1oDihkDN1jTtoS6aWKfC HkQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=B8v0iAi4; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id x8-20020a056a00188800b006c0035ff9dasi7846627pfh.198.2023.11.14.00.48.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 00:48:01 -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=@gmail.com header.s=20230601 header.b=B8v0iAi4; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 9EC1E801CBD5; Tue, 14 Nov 2023 00:47:08 -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 S232692AbjKNIql (ORCPT <rfc822;lhua1029@gmail.com> + 30 others); Tue, 14 Nov 2023 03:46:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232460AbjKNIqF (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 14 Nov 2023 03:46:05 -0500 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 583DD1A8; Tue, 14 Nov 2023 00:45:59 -0800 (PST) Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-5a9bc2ec556so3223812a12.0; Tue, 14 Nov 2023 00:45:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699951559; x=1700556359; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zf/f9iBOx5zFbOHUi2L8dYuwfOZwOV/VjcIWW5aZNCI=; b=B8v0iAi4kWFSw4xBDhd+yCGqGjSxUsaQLqxk393Oponv1r4hKDIt0uXMdh4o9tLoZ7 03Dzb6C0Vs3U9OREKrRHXw8faF3ZgeHWxoNsB+8lZm4mDNa806GOblpzPsbLEgjEkNxI r7ps5c/nFm7le8eQrDW/0ccyJ2FskBzkTp9o7b8wm9MoXk1RrMcDBTmEO1Ulqa05EUpS UMclit9dFQ0uUiclwSqPKD6ROK+V8q8vqAYfU7um3Wty0NxNfjn8H33TQosv4J+nyot0 jap1zycVIyH9OP3LJiKcXqygEzR9XPDM2dR5SWQTKqTFsF+DQzKawMolSiaXJJCHAFaF t9Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699951559; x=1700556359; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zf/f9iBOx5zFbOHUi2L8dYuwfOZwOV/VjcIWW5aZNCI=; b=pxf2WmDPc9i0WCE3+wM9KwcpSwE6xjMivvJ4jj2w61ohiiOiWPHbnCsajhb1Fexvum HOK2xGgkPK7Rl4RECGuwzkdAqIeB+XXXeJ47hwRRVnDf89rXn64mDi7kdGknaDepQcvL 6Hbfcth2266Llw8tNWg6+eo3cc3gALWoN/XeDp8yN8mV2s1Ouv0UW9DczauFeQiT82pC ZL8n/ByPR+4j1ZmbDaRluWOkRJA9iUzS0eONaCrrQp6Ewr5q2JYOs0UrydqMn0VpdsMk knJInRh/Xexxjzv9j40tABQ89hcEY7raO32aAkIYStnBXM6SIwNsgf7N3UpyYUWMPX2D d/Pw== X-Gm-Message-State: AOJu0YwssL7kaqMjLBLRM9oaTsbfHzoQ4wgm6GueOx9NNRBcV+kpDAVj wZINF6vgchUR6+PxCNM2Ch4= X-Received: by 2002:a05:6a20:244a:b0:16b:80f2:f30c with SMTP id t10-20020a056a20244a00b0016b80f2f30cmr7338974pzc.26.1699951558709; Tue, 14 Nov 2023 00:45:58 -0800 (PST) Received: from carrot.. (i223-218-133-131.s42.a014.ap.plala.or.jp. [223.218.133.131]) by smtp.gmail.com with ESMTPSA id u17-20020a056a00159100b006c4d2479c1asm748083pfk.219.2023.11.14.00.45.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 00:45:58 -0800 (PST) From: Ryusuke Konishi <konishi.ryusuke@gmail.com> To: Andrew Morton <akpm@linux-foundation.org> Cc: linux-nilfs@vger.kernel.org, Matthew Wilcox <willy@infradead.org>, linux-kernel@vger.kernel.org Subject: [PATCH 14/20] nilfs2: Convert nilfs_gccache_submit_read_data to use a folio Date: Tue, 14 Nov 2023 17:44:30 +0900 Message-Id: <20231114084436.2755-15-konishi.ryusuke@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231114084436.2755-1-konishi.ryusuke@gmail.com> References: <20231114084436.2755-1-konishi.ryusuke@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,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: <linux-kernel.vger.kernel.org> 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]); Tue, 14 Nov 2023 00:47:08 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782528534145983567 X-GMAIL-MSGID: 1782528534145983567 |
Series |
nilfs2: Folio conversions for file paths
|
|
Commit Message
Ryusuke Konishi
Nov. 14, 2023, 8:44 a.m. UTC
From: "Matthew Wilcox (Oracle)" <willy@infradead.org> Saves two calls to compound_head(). Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com> --- fs/nilfs2/gcinode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/nilfs2/gcinode.c b/fs/nilfs2/gcinode.c index 8beb2730929d..bf9a11d58817 100644 --- a/fs/nilfs2/gcinode.c +++ b/fs/nilfs2/gcinode.c @@ -98,8 +98,8 @@ int nilfs_gccache_submit_read_data(struct inode *inode, sector_t blkoff, *out_bh = bh; failed: - unlock_page(bh->b_page); - put_page(bh->b_page); + folio_unlock(bh->b_folio); + folio_put(bh->b_folio); if (unlikely(err)) brelse(bh); return err;