From patchwork Tue Feb 28 21:37: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: 62620 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3267353wrd; Tue, 28 Feb 2023 13:39:34 -0800 (PST) X-Google-Smtp-Source: AK7set/ZDLySCVWFC7FyyhzruJnCFj6+1BPzmeV5KLVRTUWzHgN7L1/IRCRPAuMy1mFNDpa9xdPZ X-Received: by 2002:a62:8453:0:b0:5a8:9f71:315b with SMTP id k80-20020a628453000000b005a89f71315bmr3746949pfd.4.1677620374319; Tue, 28 Feb 2023 13:39:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677620374; cv=none; d=google.com; s=arc-20160816; b=v4EI3ogsWUSXXH4llhVYoxDjH6KcvQlMG4VAUif15IKfAeWvADlD3wBtDmf4vL6sRw itnfw1uh5cSX+ErP4igk07R0Qim0EoT2VZ5fTCaRg+L9mAG+zzYLHYegMuQ5t68ODzMP b5ET4uab8RsiMwi3tSdWrR/eHJu82p/rlHu6n7FhqihGJUK2Le2KPe8qZqJhPyL6tZMY 1vTfPxc4zd9y5Czn/6qRYf+gCsTbiv8T+Tz/VBtOf/pehhozUnmCSWxEFvKfC1m/QN5e tpGXvAJlu3m6bEnrcRYzhiOr9HJdnJlXYIQtyn70fFwEEXqDYFZojnHZaOO69PhRs6VS ZWiA== 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=mdaqpw27tgluLSVUfr5NCk7JYy/yOeBvYqmE7YJCi4Q=; b=ORDF2AQN6H5mbufXsXB1VR3GDD4F3SEaUlWNc4THu55RTxR+qviQINJCPoFgPI3QOT aZBSJrfLrYppKT4MJp/pFlHtmN9phkdOagUsTjDEbWZAGk+V58iHKwdvLF3jNcsmHyuV kIEGkrEAq9+D6WesjSwziH/DbK3GY8ouIKDYQY2oNXcGXmfoqOZ5MX3mSGg8Uyvje8p0 3Tkw/2amWg6spTjtEmYYb48MCoVpOELiCxMutSdZy7E1cHGHqNMUnsbE63MN6UuTEwbF MPBmpcGYgF0gzPCHmN50oCbpc7dLH3C9x2i3NnWKjEkFU8AA5P8uiYCABy06/pthaBIY XIYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=DrFh2yHP; 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 q1-20020a6557c1000000b005030925d302si10452647pgr.26.2023.02.28.13.39.20; Tue, 28 Feb 2023 13:39:34 -0800 (PST) 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=DrFh2yHP; 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 S230056AbjB1Vib (ORCPT + 99 others); Tue, 28 Feb 2023 16:38:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229977AbjB1ViE (ORCPT ); Tue, 28 Feb 2023 16:38:04 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFF0A3401C; Tue, 28 Feb 2023 13:37:44 -0800 (PST) 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=mdaqpw27tgluLSVUfr5NCk7JYy/yOeBvYqmE7YJCi4Q=; b=DrFh2yHP+xndjR7rLzUn2Ia2US A9zyiUHLOTEyGpZP45ISo4r/tr45esU8qg5UQYLi1Tg8YmpQVCQFuth04qslUG1emgF5B594UN4+7 OqklC4ITNVGNREdIx2rLBwu7gfGDKNtcVmXeUlxiHR4acwBEx+18uyz/FMgo6Bg3OCgxbyP2HnkCo NtvjjX9fsWSims23QTMn3KVR2VLXfe3bqSN9gmaCMW0sK84KjQparXeo/4XYtu3lOAH8XkACexa6v VP06CViu2V6RZ3dqP9iH693OXYOMYPni/zYuFHC2aNm+CiyNLHGA2FHR6T/cIg4qNPPCIyRzhaGzX cSaNjUvw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pX7fK-0018qR-K2; Tue, 28 Feb 2023 21:37:42 +0000 From: "Matthew Wilcox (Oracle)" To: linux-mm@kvack.org, linux-arch@vger.kernel.org Cc: "Matthew Wilcox (Oracle)" , linux-kernel@vger.kernel.org Subject: [PATCH v3 28/34] mm: Remove page_mapping_file() Date: Tue, 28 Feb 2023 21:37:31 +0000 Message-Id: <20230228213738.272178-29-willy@infradead.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230228213738.272178-1-willy@infradead.org> References: <20230228213738.272178-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 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?1759112461810229127?= X-GMAIL-MSGID: =?utf-8?q?1759112461810229127?= This function has no more users. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/pagemap.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 1b1ba3d5100d..c21b3ad1068c 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.