From patchwork Mon Jul 10 20:43:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 118102 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp75014vqm; Mon, 10 Jul 2023 14:12:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlGrfrDyu4v7VNheZ0hgErwo+jQiPJpAjQ6bM05gAO23ugZS7NzUJOHSQxp6weBC+hw8Rr6D X-Received: by 2002:a05:6a20:1444:b0:126:306b:c6d4 with SMTP id a4-20020a056a20144400b00126306bc6d4mr12542474pzi.23.1689023537149; Mon, 10 Jul 2023 14:12:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689023537; cv=none; d=google.com; s=arc-20160816; b=nGcBHvwX0GJ1uTiFg9yJdAUKo6mwGQgbAJ3CnE170GdU6Bl9cgsekVrL45UMFB+JqS NFs+sf5pncSjq0T+wNpI2WpKd+KdNHVw2ZDZiffHG8Visue/LhzEOpvR/EKeVb0SPyEx V3rP97vQzOGT9gCNT6l1Ep5x2Epi6OPVV9JW8Lq1KplrYGL2jOGxg8MXgUvxX0jOfWW2 40+C9jU56nx76jzo4uqx21NyNVYtyS0OZbX6esl/bLvmHYDI8+f2eaBLtkNy/xZphFDH 1FuZLUkVCJoefz7aZblKozmx0gBuIENEwcvhKHjxeMocFqs5rYwf8Fxc/M+YM9g0tA6P R7/w== 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=F+ZlOZYXfLNjysRkosLQAF/h5hJm/ZmBQd5bhit3iG0=; fh=YSRXgHJFLntr8RR5WDr+xEuSZ7CBE2Ww6sl4CKuWw+A=; b=pBDCWS+bRBaMbajsolAAZiz76Dbgb1AFooRwKYGYghj70w0Awd6lRpJQ3/1QH4877l HJ8exqc3o6my1ba+2PMGTMAjMuvDfzQt8zqN+Q5PxGkZTTfC/5aBJ09+kdUf5BJtU1DY XNj6RCluH6KuTCaxw4xS6nerKN5vMzmmga45tCEmzUVQ7RkLrPxBCRGZyjuLVMuO/Ebz XCvWpbMkoRVxIbyvqLOhnSpLuQuNPFcsoyJIVDmw/veS5wVkP//r7yWOZiBeRCk2UtvJ HOcQRXIjEob1nQqRVYcrR5mIrNfWwaHe0LzWCGl1Th2ldmimGm7amYfUs/qYjcV8+kK2 nkJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=HN1p+gEF; 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 36-20020a631364000000b0055b618c77f6si222453pgt.180.2023.07.10.14.12.04; Mon, 10 Jul 2023 14:12:17 -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=HN1p+gEF; 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 S232932AbjGJUpO (ORCPT + 99 others); Mon, 10 Jul 2023 16:45:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232343AbjGJUoF (ORCPT ); Mon, 10 Jul 2023 16:44:05 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BCEAE72; Mon, 10 Jul 2023 13:43:46 -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=F+ZlOZYXfLNjysRkosLQAF/h5hJm/ZmBQd5bhit3iG0=; b=HN1p+gEFEXL2I8SdOVwCy+Eoad oY5wyMKzIMjZhTic3XvCdeipBjThposExOtkyN4oekrhLmxN6ZymyArLOYJ+VSl4KhakWOI1/1nqE RT2qar+hBM7Ne2vF8t5D9eCiEWKvSlKQKsfaWCBBY8AXd2aK4IbGnhp+TV3Jr7h3xHeiff8XDrGUQ sLOPCde6Y2M2iPruUMowU4SXdBEYtZGRNPfhkrbNNKbDu4x6hdXhIyE7RnlxTSgySRCZJ27lXH73L 3txlvo0r36dhsc3FNV1+BDXkTUctkFzxPOdMqCsWjJk5/j4m7pnssMhA8pQqbyPSBa2owsXhLEDo8 dAV4KQLw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qIxjU-00Euqh-I4; Mon, 10 Jul 2023 20:43:44 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Anshuman Khandual Subject: [PATCH v5 30/38] mm: Remove page_mapping_file() Date: Mon, 10 Jul 2023 21:43:31 +0100 Message-Id: <20230710204339.3554919-31-willy@infradead.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230710204339.3554919-1-willy@infradead.org> References: <20230710204339.3554919-1-willy@infradead.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771069544236435672 X-GMAIL-MSGID: 1771069544236435672 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 794e4e55dc38..71dd79b4ae0a 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -414,14 +414,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.