From patchwork Wed Mar 15 05:14:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 69973 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2151611wrd; Tue, 14 Mar 2023 22:41:54 -0700 (PDT) X-Google-Smtp-Source: AK7set9mzvB0FkgZRWNe9kraMKL49l3xObARhexSKcGZXAzQJNrKzNAX8SpwUoebVILXCWoTUI3Z X-Received: by 2002:a05:6a20:394c:b0:d0:61ff:8534 with SMTP id r12-20020a056a20394c00b000d061ff8534mr29616296pzg.1.1678858914282; Tue, 14 Mar 2023 22:41:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678858914; cv=none; d=google.com; s=arc-20160816; b=oGrC2Q3jybCJdKObl3tVBgNkY8tKJ/mNAmFoIKtyX1HATfWJ+oWGlxy2Ez3iW5wJeG sPKdy7ZiPdPESkKitVEUXDjnZ1eYXk6AQ42KG+0FPnJyI/tVbsq/I9kAGdflWMdSB465 a9jmu6JQbYfjX2XUmRqXjKrv/oP4xmnyJj1z6tsEN8esu4fRRdNWwFsiBLzByYmtonfQ G5gef0zvZkBlXR54mMoT9Ljpx+f1FfnybeYlljIT0pu52+j/beHn9UktUFNnu4pslWP2 RwDAVK912z1m7HpYaianE1lVBdKfBX0g84L65y/y279QWXCZhVOAFHw8XeTxMwX62Ji+ zATw== 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=rzzYbuX4ToR4PRSGg4gxiQg60PZuy1bmg30AVicE5lc=; b=SwEUOPGnN9N3BW32878BYZSHD9GHWOyB8XfeqEvGOAF3yPOIjt1Tk25850cVApThMe Xy46xdpxyz+DbhrUEhyVJ7vsaCxW+QI8qax5Xv79u8uDueupVxJ/7EmheDcpO0sAGMq9 eZAATmRn1mJ5ulhY6s0wbn+89UMw2QuDm7bL1EJGckEJUa99UGtPb8BoW7YUkoZa4ot8 mxIAdppaqpQ4qYKKPBMBuJAnDcERIEE8rfVWC4RPcUwwRJMHJ/W6LFIzlzTjQ3t70+Ot Og5IwwWxEsOyCTkc3Ve/9JTbvJP1X5URoXuvCMRgx9cv82KZH1G7j0xa2N+aV0j10h3L hAYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=LFipvvEQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u5-20020a63df05000000b0050239e95d34si4152613pgg.260.2023.03.14.22.41.39; Tue, 14 Mar 2023 22:41:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=LFipvvEQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231436AbjCOFQe (ORCPT + 99 others); Wed, 15 Mar 2023 01:16:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231316AbjCOFPI (ORCPT ); Wed, 15 Mar 2023 01:15:08 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A170327982; Tue, 14 Mar 2023 22:14:54 -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=rzzYbuX4ToR4PRSGg4gxiQg60PZuy1bmg30AVicE5lc=; b=LFipvvEQakTIInjheUdNgkYGQq PQlNsLrLwxSeSBjE9GBWTNlVTV5an9fUmN4eHue46GVqBu5wp0EHoeKdB7HoGOszydP0kOyYoL7bP +57XeupqJHTvYryjfwkHT24Dg5ZN1CWuVA5nyVaBITI8APSFSLXxKCji+zmpN6kJA9usBKnKqayRz JyLjpYf4dbg9w5l7JG2bNPpcYuiSr/Mimk1ikLjZaFxwxNy2ipQ2GMaqWQ6LhcXNQh9DeYzFrF2qm EoaJ5MFMLwBA2cGyS1jlYi3Q8wFWnbrRNwhLuGPfDc3318NHAlhNGbsAaVKOfBb0yrbztvVx4p/3d rLZekx0g==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pcJTN-00DYDB-U3; Wed, 15 Mar 2023 05:14:49 +0000 From: "Matthew Wilcox (Oracle)" To: linux-arch@vger.kernel.org Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 29/36] mm: Remove page_mapping_file() Date: Wed, 15 Mar 2023 05:14:37 +0000 Message-Id: <20230315051444.3229621-30-willy@infradead.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230315051444.3229621-1-willy@infradead.org> References: <20230315051444.3229621-1-willy@infradead.org> MIME-Version: 1.0 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,URIBL_BLOCKED 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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760411164512776967?= X-GMAIL-MSGID: =?utf-8?q?1760411164512776967?= This function has no more users. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Anshuman Khandual --- include/linux/pagemap.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index e56c2023aa0e..a87113055b9c 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -394,14 +394,6 @@ static inline struct address_space *page_file_mapping(struct page *page) return folio_file_mapping(page_folio(page)); } -/* - * For file cache pages, return the address_space, otherwise return NULL - */ -static inline struct address_space *page_mapping_file(struct page *page) -{ - return folio_flush_mapping(page_folio(page)); -} - /** * folio_inode - Get the host inode for this folio. * @folio: The folio.