From patchwork Wed Apr 24 19:19:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13642430 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 67A94C4345F for ; Wed, 24 Apr 2024 19:19:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7BCC36B02E0; Wed, 24 Apr 2024 15:19:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7470E6B02E2; Wed, 24 Apr 2024 15:19:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 598086B02E3; Wed, 24 Apr 2024 15:19:26 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 377876B02E0 for ; Wed, 24 Apr 2024 15:19:26 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id B610C40264 for ; Wed, 24 Apr 2024 19:19:25 +0000 (UTC) X-FDA: 82045389090.28.32A7031 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf01.hostedemail.com (Postfix) with ESMTP id 0F01A40010 for ; Wed, 24 Apr 2024 19:19:23 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=rMJIvE0j; spf=none (imf01.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1713986364; 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=i6rlpTf8bAf7Aunu38ehYJMaaJBBkK8Roanu2+98vag=; b=zV599X3yHcv4lZJyT+BHCh1EyFR5Fzxv2YjeC/QO3A8DLjSbaTawiu+WhWzWJlNupz1/U5 xxFo4fp6u+fbye6uaBhqtTRKT0pkA+1ndBbLdPNsmYFKl8UW3WveSgMK4VTWIjc0NP9sjf 1h2F+AQ/iszgrB0KQqpzKy1f19d+edI= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1713986364; a=rsa-sha256; cv=none; b=Bm2vNS7ycnGPtsCKk/Aqytlc3x9ohQHlDk1VKDdYXb0Abh4aPvKq6skXtYjg/Mx8PqODBL SE9cWpeRC448cvQ829lbdiqTPDfy3R4Eb9hyeILHWy4kuK11iWHecTeB0bPgVqg5mBHpTF l26IictwiYu1+VR5rmRBq0Km4rUy9CY= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=rMJIvE0j; spf=none (imf01.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none 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=i6rlpTf8bAf7Aunu38ehYJMaaJBBkK8Roanu2+98vag=; b=rMJIvE0jG5u6xaoQUjNxF0NUQK 7aHaNvIpSozkRPdWBx4xdQmGuRTVWyfWqmyiXRFIviAeJjxkLS5vFsKfsmUjV664Lnm+GFUsSosUq 0/PO+bgMnJyHDITeWaNUEsUUo8EOFHny0rZfRZEhibZt9dZOO1weZ7jP4TvZNTF8lbUDodwuerQ78 CtI29MXNZFuHMnzceiLpCXkCVa7+B5UtCB+PRkF3w0outkKg/ezF7inBlRIPNPdBVSKwd/O7oARUv I4BleNZIUmIB3Bz5ifhU7/+CcgjEqgFhDpWpQfr0AYDnIZSe9w1HD36O4gBLapGuPkBpBnqtB3P3D elwLbiIg==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzi9E-00000001W3n-02OO; Wed, 24 Apr 2024 19:19:16 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org Subject: [PATCH 1/7] mm: Remove page_cache_alloc() Date: Wed, 24 Apr 2024 20:19:06 +0100 Message-ID: <20240424191914.361554-2-willy@infradead.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240424191914.361554-1-willy@infradead.org> References: <20240424191914.361554-1-willy@infradead.org> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 0F01A40010 X-Stat-Signature: 6ks1bkqsij6p4p87jt8eniagddo5p988 X-HE-Tag: 1713986363-362713 X-HE-Meta: U2FsdGVkX1+dmDcRm5Z+GvmMGrG0NRk33ZnXBHINeAchGaVFuiXoYqeV91sT8x0Ou/srS/G8/ijBPXOqpov66MFMN1msTovWqAXj67AB28d/JI9EDqEmjXCV1K7wveBka96BUwC7r+o8N5Af1V6xGbOxXuSmKEnHlOVkOw0jArU8YsfbLCQhOiQ2OHYeDrhv811NZmYfhHzfz9FCHNwOtFiH06C2PGB6oNdw5XR6PKNg5/VSwS6DpR/ozb9xjeB7dlcWfpoe9hDLA/Eq3mNnWyZh82IJZHZh9E7kCQVwIjJLlCIljo5HmLDoJYYMlt78v6+NfoItSSL92r6mDZ/bRTzWiLAEylTGLZAncQ0K7PbHQioUgx2fOFLedSMo39tKLuy3hmDhamVJ9lO+4j0D3ttBhM5PyVgCfebNifTzzTfmmQ4jmy/kL6IJI5nf6aDAEWzQSDCA6W4Wm1kZ/PtURMx3C4kub3/xMQJKELQPf3bIrBDcxgjqxwCVjIFQIAoQXLztNj1bTYn80z99DTN5UKfCPcwixw4bLgAe9oQvDYnUBCJolbC8wriStcAe0a0zWbKFGCDflJjBPq9xpXbaQixMtgtjnwgsR9zo4M6SZHOnQQwTtnuIzKVN4q9x32p3P7wSehoqzjGY89MVmiSTZpmCcSQycLUiCBfG4CbniGUcabWzW2zUBzwQrS2ksXr/9JbpJz4DxnMZp/Zz34nug4GhZI0YDm9A16fXstt8B/lMkfyhcmqph9fsyGt1+8VAEuJNym1ivjq9egafJEP4fqbYR8CNlm0kNHMfZyNMcE6W2ZZ3zCHS8mJnDVw7ZjeICd4A7BFt6SVotu6iYFkrmNUp1+rxm51KeTYPwBAAKjb01Mf4AU3FsFDkvMD/b5yb7kZi+2GE3UVrq3DYMI3jQQt7FsXy/UBCrGFydkP55GR0JBpO/b2w+mNFq2sBQ76gkc4swLowNy7yBWtZuvp lRRbX+0P cMv1JP8WkuG0zUnTeQbzdF08zEx13lSImE2gTQtEL0f++21wUMMrD6RXoIIcMlEN3hZVJP1FlCYV+2fFk3d7KofAHmBxy8sJwk1dBqmkt1SaTV9V0Ge0TKxiyF3NoLc/oj+9ZTax82foCKlES15nsSMCIZZaQbmyPeHGoz89Wpec90k2csnHtw0MR6y6f5D0JCAleEFbWer9VnhBK8+8mbdAsGolrmVEgu6n1 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: List-Subscribe: List-Unsubscribe: All callers have now been converted to filemap_alloc_folio(). Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/pagemap.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 941f7ed714b9..1dcaf86fb615 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -557,11 +557,6 @@ static inline struct page *__page_cache_alloc(gfp_t gfp) return &filemap_alloc_folio(gfp, 0)->page; } -static inline struct page *page_cache_alloc(struct address_space *x) -{ - return __page_cache_alloc(mapping_gfp_mask(x)); -} - static inline gfp_t readahead_gfp_mask(struct address_space *x) { return mapping_gfp_mask(x) | __GFP_NORETRY | __GFP_NOWARN;