Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp441553rdb; Mon, 18 Sep 2023 23:03:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE2fK7v+6LlPEea1hqRjvoMUeUnm2ej7eIUaQXJYFD0dGAojDhqZaxL5mrfQpZhPKBStJdY X-Received: by 2002:a17:902:c404:b0:1be:e7ba:3a97 with SMTP id k4-20020a170902c40400b001bee7ba3a97mr13013000plk.15.1695103427527; Mon, 18 Sep 2023 23:03:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695103427; cv=none; d=google.com; s=arc-20160816; b=D+P+L75V+jT54f8hpfwmJfNnqXjmllKHph+QIOlg6dsB5qOlJ1z1lUsJTpok1+4a9n oJw5u4aLJjuXhmvM/i/4rwlPU0l14OmwbJ6D1Urw+lSdVrPSphsGPXLV/dii2O5zYor5 PvsDAo/4Vhaz2BTnenGRHLIgpLFhdZL/aolL7t/KyXTL2UP2yxeDDbR1Cem7PNRjIKtq MjVR9PiioPNpE9y4lpP65+pi6LPSHN5zoq/6m0jbZ40rgo55qQmKNb8te8VdbOrMjg6N 6oqor9KaA6iKQX4+NpqYY1FwPO3trWG3HCn0ltgeK6YKoGwdBWlGL0Uh+eEO2bZ6lJfg zeYg== 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=KTqAHAx4qqR4Q7lC+S6uqhCRiwzNekbkPxfVngkIgDU=; fh=Ex900LeWemyNv8v7eVaT25lhS5hAbxvedq4sD5vnIX8=; b=SXNEkTOvA8EmFR2MyJCnoK/HSmJ7G4kc3Kb9UGgyHCO6iUFEkxyaTF2T1e1b2kYQZY RjE5RSV/gcDC948XOR5Twb6kpcgM31xzxkSBZ9NDd07vJmhfd3FHvhdyV8OIkzSjGPb7 1nIyteVRwW1eCrc2zCUZg17LzHifMafuOM62PHwD+DArfKUiXYXC5OveltFtaJNRzPgM cDIMTx1+F0dVlGPeVHPO/mImPIaVwGp2q5IdloqzHxb9UTHBibulHNMo5octAbLvPGQg IhFlVy8OJzVLvIIQllx1ecPd/QZYT32cOx3n1GIi/pD98WlPaS6va1cdAII4UQUdU+Jc X4TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=AU5Z4AMy; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id c16-20020a170902d49000b001ae40e07fb0si9452701plg.216.2023.09.18.23.03.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 23:03:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=AU5Z4AMy; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 56144826C4EE; Mon, 18 Sep 2023 21:52:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231583AbjISEwi (ORCPT + 99 others); Tue, 19 Sep 2023 00:52:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231587AbjISEvx (ORCPT ); Tue, 19 Sep 2023 00:51:53 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3344E13A; Mon, 18 Sep 2023 21:51:43 -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=KTqAHAx4qqR4Q7lC+S6uqhCRiwzNekbkPxfVngkIgDU=; b=AU5Z4AMyf6mpWfFk9NA31PWFC5 Tk+/Pyt5xDRXP/Taop02KykNz9y2fANjDGQo+2O8yWE8MAlmRELgS+f0CfR/jYdYHN6NFURRAjeEH GQiTWmhg2dqfIdmIkTNlegKupk6QYJ/p0ivqAScVOihZ3z28I/rpbKUSRIRcCXRrHrSVNbWSP4Vts aihO5zsN3wRKtWQ3wK6HJL9ILP9rJEGPKa9xdpxVX2PtUg+V+AWMMHTnIH0UFZOOLV8qG73SsoHCo +lnV6FSOsmKOFtEcGrNE1rYEosO3mtftsKn0BM3GTJWT+O452u3k6tbWzyBBZR103V2BXE2ZHodbY /frRETPQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qiSi5-00FFme-Eb; Tue, 19 Sep 2023 04:51:41 +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 25/26] ufs: Remove ufs_get_locked_page() Date: Tue, 19 Sep 2023 05:51:34 +0100 Message-Id: <20230919045135.3635437-26-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=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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: X-Mailing-List: linux-ext4@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 18 Sep 2023 21:52:38 -0700 (PDT) Both callers are now converted to ufs_get_locked_folio(). Signed-off-by: Matthew Wilcox (Oracle) --- fs/ufs/util.c | 9 --------- fs/ufs/util.h | 7 ------- 2 files changed, 16 deletions(-) diff --git a/fs/ufs/util.c b/fs/ufs/util.c index 151b400cb3b6..d32de30009a0 100644 --- a/fs/ufs/util.c +++ b/fs/ufs/util.c @@ -229,15 +229,6 @@ ufs_set_inode_dev(struct super_block *sb, struct ufs_inode_info *ufsi, dev_t dev ufsi->i_u1.i_data[0] = cpu_to_fs32(sb, fs32); } -struct page *ufs_get_locked_page(struct address_space *mapping, pgoff_t index) -{ - struct folio *folio = ufs_get_locked_folio(mapping, index); - - if (folio) - return folio_file_page(folio, index); - return NULL; -} - /** * ufs_get_locked_folio() - locate, pin and lock a pagecache folio, if not exist * read it from disk. diff --git a/fs/ufs/util.h b/fs/ufs/util.h index 62542561d150..0ecd2ed792f5 100644 --- a/fs/ufs/util.h +++ b/fs/ufs/util.h @@ -273,7 +273,6 @@ extern void _ubh_ubhcpymem_(struct ufs_sb_private_info *, unsigned char *, struc extern void _ubh_memcpyubh_(struct ufs_sb_private_info *, struct ufs_buffer_head *, unsigned char *, unsigned); /* This functions works with cache pages*/ -struct page *ufs_get_locked_page(struct address_space *mapping, pgoff_t index); struct folio *ufs_get_locked_folio(struct address_space *mapping, pgoff_t index); static inline void ufs_put_locked_folio(struct folio *folio) { @@ -281,12 +280,6 @@ static inline void ufs_put_locked_folio(struct folio *folio) folio_put(folio); } -static inline void ufs_put_locked_page(struct page *page) -{ - ufs_put_locked_folio(page_folio(page)); -} - - /* * macros and inline function to get important structures from ufs_sb_private_info */ -- 2.40.1