Message ID | 20221231150919.659533-10-agruenba@redhat.com |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <SRS0=lOHm=45=vger.kernel.org=linux-ext4-owner@ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=2404:9400:2221:ea00::3; helo=gandalf.ozlabs.org; envelope-from=srs0=lohm=45=vger.kernel.org=linux-ext4-owner@ozlabs.org; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Oja1II/9; dkim-atps=neutral Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NklwW4lpKz23fJ for <incoming@patchwork.ozlabs.org>; Sun, 1 Jan 2023 02:12:11 +1100 (AEDT) Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4NklwW3mvYz4x1D for <incoming@patchwork.ozlabs.org>; Sun, 1 Jan 2023 02:12:11 +1100 (AEDT) Received: by gandalf.ozlabs.org (Postfix) id 4NklwW3gQtz4xwv; Sun, 1 Jan 2023 02:12:11 +1100 (AEDT) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-ext4-owner@vger.kernel.org; receiver=<UNKNOWN>) Authentication-Results: gandalf.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Oja1II/9; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4NklwW3W0dz4x1D for <patchwork-incoming@ozlabs.org>; Sun, 1 Jan 2023 02:12:11 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235779AbiLaPMI (ORCPT <rfc822;patchwork-incoming@ozlabs.org>); Sat, 31 Dec 2022 10:12:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235829AbiLaPLm (ORCPT <rfc822;linux-ext4@vger.kernel.org>); Sat, 31 Dec 2022 10:11:42 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83875D134 for <linux-ext4@vger.kernel.org>; Sat, 31 Dec 2022 07:09:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1672499398; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DQKaXBioDSeHnseK3c0h99kI8+k/CfMG7MW+ZVRX6dc=; b=Oja1II/9aR2ZEjFz8KDikupOxGD/fRij+aqrNS5L9JR55xV8dm26zlPuS6w87KKFixsNmL NE7IF64varmzWa6FHVugazsAcmJwn84q6pfnP1UMjkv1kzYNFr3Fmx6AH4JrK4HuDo70pA b9h4lSFA5oNpr9kbQ+6/zxwfv7PTUgM= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-673-u81ISahlMmSRbFuzCDtAOQ-1; Sat, 31 Dec 2022 10:09:51 -0500 X-MC-Unique: u81ISahlMmSRbFuzCDtAOQ-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0332D80D183; Sat, 31 Dec 2022 15:09:51 +0000 (UTC) Received: from pasta.redhat.com (ovpn-192-3.brq.redhat.com [10.40.192.3]) by smtp.corp.redhat.com (Postfix) with ESMTP id CEDFE492B00; Sat, 31 Dec 2022 15:09:48 +0000 (UTC) From: Andreas Gruenbacher <agruenba@redhat.com> To: Christoph Hellwig <hch@infradead.org>, "Darrick J . Wong" <djwong@kernel.org>, Alexander Viro <viro@zeniv.linux.org.uk>, Matthew Wilcox <willy@infradead.org> Cc: Andreas Gruenbacher <agruenba@redhat.com>, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, cluster-devel@redhat.com Subject: [PATCH v5 9/9] xfs: Make xfs_iomap_folio_ops static Date: Sat, 31 Dec 2022 16:09:19 +0100 Message-Id: <20221231150919.659533-10-agruenba@redhat.com> In-Reply-To: <20221231150919.659533-1-agruenba@redhat.com> References: <20221231150919.659533-1-agruenba@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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-ext4.vger.kernel.org> X-Mailing-List: linux-ext4@vger.kernel.org |
Series |
Turn iomap_page_ops into iomap_folio_ops
|
expand
|
On Sat, Dec 31, 2022 at 04:09:19PM +0100, Andreas Gruenbacher wrote: > Variable xfs_iomap_folio_ops isn't used outside xfs_iomap.c, so it > should be static. Looks good: Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/fs/xfs/xfs_iomap.c b/fs/xfs/xfs_iomap.c index 5bddf31e21eb..7d1795a9c742 100644 --- a/fs/xfs/xfs_iomap.c +++ b/fs/xfs/xfs_iomap.c @@ -98,7 +98,7 @@ xfs_get_folio( return folio; } -const struct iomap_folio_ops xfs_iomap_folio_ops = { +static const struct iomap_folio_ops xfs_iomap_folio_ops = { .get_folio = xfs_get_folio, };
Variable xfs_iomap_folio_ops isn't used outside xfs_iomap.c, so it should be static. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> --- fs/xfs/xfs_iomap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)