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: 13307630 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id BC494EB64D9 for ; Mon, 10 Jul 2023 20:44:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 448FE8E0020; Mon, 10 Jul 2023 16:44:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3F8DF8E001B; Mon, 10 Jul 2023 16:44:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2C2208E0020; Mon, 10 Jul 2023 16:44:04 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 14E748E001B for ; Mon, 10 Jul 2023 16:44:04 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id BA4D614028A for ; Mon, 10 Jul 2023 20:44:03 +0000 (UTC) X-FDA: 80996879166.09.2CB464D Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf09.hostedemail.com (Postfix) with ESMTP id E6C0B140009 for ; Mon, 10 Jul 2023 20:44:01 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=HN1p+gEF; dmarc=none; spf=none (imf09.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1689021842; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=F+ZlOZYXfLNjysRkosLQAF/h5hJm/ZmBQd5bhit3iG0=; b=DbPGmnJrnotbnSC77eZgh+fvsrYEmZkouL+TJKjQgUDnAZrMuYmCp5R9njFYuk5AJeJlNq 9HG+qUE6ikXsL1zgv4Q2MR//8D2hZnUBA+t3zwmUVe4Z8B7gZLQS0sAX+Clj+n9BCHTLMC baQSYo2ZFESQFcUAWwbVEOoxObst6dw= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=HN1p+gEF; dmarc=none; spf=none (imf09.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689021842; a=rsa-sha256; cv=none; b=FN0CEhlcD1ScTNi7wbY/5bHZtlA23mnpXHUUfvJNX+8knl3pBcL28uXLhdzZtcUFWX9KY4 fcWJ3AY8C3T0tQBIFbxKCS2VJNiyt1oJ7ZbY7sgxthAh/YOOX7hABIHlVNOHNcz4qxFtD9 6VS5Jsf7QVpBrNrPsALDkO3Xf2cBBUk= 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-Rspamd-Queue-Id: E6C0B140009 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: nguc5fd5pm3astp5861i6febc4bo81d4 X-HE-Tag: 1689021841-848220 X-HE-Meta: U2FsdGVkX1/lG5KQMFKh70aNO3asYzkEwH+9WoFjA86MfDVHKiFnGUBjU4w1vcbVO+09wQh0ckzzUk0UoyLouZy/ZHimAV7diUyd1Qs1Mplu2gDc+rqVnNJPRNP90yizdowc2eX7plDuA5L3mYMbkasTtuop0t/PqVpcuvOtqhNojsFJjCO7imbL+s5MkHHdw43umrbs7Ptomvw/+fg/pu9PfjMDYAXzN2oqYe+LnMDMiEsH6FOtTX6la6PKwCGEKCv1CsJLE+ZWUjAfoZ5UUJtfEMIIsZGNHxUqtuglwB+04fWVsnADxqMviFyDxr9s09CLpqBwdccQOpXg8U7Zg47C9uoSokuJPgFujX3bphnT8li2vzX1AAu0gSqsdCF9ckyAuQjg2MI35smRSuU7cmh1885ThqeO1fLwj7tlSJjlNJAzIIvL8JF3HJiRSsPnUvflvbAGT33nkyfI/nIu/ZnuArFKx5MwdFm2gwFHN4pux+8j2T2oS2gO5930DTqDQ20URRR7i0SUeSDHeHgqGTcMM7ZXl2sJwiIUYyjJN8TK8xznzpMzXv393zKfg2gp9jNax6siYsDCh2hY+nc6ViIZg1ZeAZQ3F2eWBXyGyQbFeiYseszmFotZdHkfV8//uzNHWmgVEJScVHyAypaH/5gDexvwnmK8qQisi3A36UbNHoF9wCP1aMyvk4q915yymoylZtXbezDIZ22cU8wqwaFAlzNji6ZRa1PCkr9JaaSAbxGlKZcaUhko8tPejmUBU5UOIwqY8tCjfNZJj/zmAfrn9as3vteZbEd2e2L3sMsvH3yiML1XGPh8ZTzWFHNjIC/P8seyyZxjZL+Iq4WqB7yRrFV/2LPdpFmoAhaHuXHMNlK6L876u03gKPaHxyTZknV3rOG+dWW/fExhkmuSrQqZRKmeP0Vdp5XvUcV4MFSvqYG9dJ+jMPlEyJYarLABSvN5MwA61d9P6t2xUkh RByh2ed9 SRoZA+OlsEYxPCFQyPOO8lIJPN03zCMZXOjC/K8X7IVXQhkG1OmrAOfdYlgnJru3NGLoYaX1FwXYt37Jlx3iuaU/q0lI4nKAS4Q/CGfVwxckVHhrvCEHzlb0f59DC5j9zYLswDu5cYn2IzvkBwDKWjQoX9y1t/MN11uzeF38jzdHdf8hyJPgHYJRo6J6CfNiD2wFcL3WyUKS66JgggRObczEzq9wzYJOgJ8+SOwXuE4QB/KzvD8mpJK9s9M0sEuZvdVQVn+dKe/tw8PqES5SOL/g9YPbx/wURBau6 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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.