From patchwork Thu Jan 9 15:22:21 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13932906 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 3ED91E77199 for ; Thu, 9 Jan 2025 15:22:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C78966B0093; Thu, 9 Jan 2025 10:22:53 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C29156B0095; Thu, 9 Jan 2025 10:22:53 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B17256B0096; Thu, 9 Jan 2025 10:22:53 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 9ACBF6B0093 for ; Thu, 9 Jan 2025 10:22:53 -0500 (EST) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 49FA7AE42B for ; Thu, 9 Jan 2025 15:22:53 +0000 (UTC) X-FDA: 82988281026.20.2BDD52D Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf14.hostedemail.com (Postfix) with ESMTP id E7806100002 for ; Thu, 9 Jan 2025 15:22:50 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=Dl2A6kXx; dmarc=none; spf=none (imf14.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=1736436171; a=rsa-sha256; cv=none; b=aZhVsIKH+H8d1lcMtBUQYeuTm2/AdyJ+UW0yV67t1tKxV+ZPFfVfVAvgKC1MTFKBjviYNH S9+rjfp+njuJHSPVNlJzO69otKYKFinouNxUspV0kW62jP3KVxRm2K53WmbtXgxqA85jVN aBYhpt+CHwvOOQ0Lk48cOiBzOy0vcq4= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=Dl2A6kXx; dmarc=none; spf=none (imf14.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=1736436171; 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:references:dkim-signature; bh=EkHMzFJGmrapnUQJTNW3FFw3scHxoXOvECh+hzSLMMY=; b=F6A/trSsydgfc3zpqxPFWgKRtzny2Ae6cESG2pZDnk7OktJwo6RcoVx4ZRspOgPLouwFIH SW5vRHNhQUZgDv/C6T+w7nsEUqbM0e5gXV/E8+S2tyfIy0ayhI7JOrHuMRR+tj7HZD+5Lf ATNSYxY0e+vBasn3a7uRz/8Vs817EG8= 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: Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=EkHMzFJGmrapnUQJTNW3FFw3scHxoXOvECh+hzSLMMY=; b=Dl2A6kXx+a8jknNFigc1IMUCsR kR6EpGlC9KcxDdxNFsW8jxfZ1BSX7VV/l/l6GHn5I9XlFjrrIL4iX4/Eh5d7oh5MvkrHJ2uR7sZ7k BC5wvAqlpRs7aSEKi423CwrX4+wIpHYhl2sQPyfcEWRZ8gKfDEEPxnWSpthx3CfWyUikAkUJt9j4H s0048SN8ZVN0thzB2D+xuWQeV+LgY6WApN1qPImoL2uMMJ3aozcWahwavs/GhtzwGCcaAnKqOjck0 ngH0tk+gDLFESVWjsmuyjWgpTtZ9xLVY1LRQkXHzdMGNxw0OsFf1tfvogPPdHN/5fgg5VviZs53kA egKrA/yg==; Received: from willy by casper.infradead.org with local (Exim 4.98 #2 (Red Hat Linux)) id 1tVuMx-00000006gOb-0yxl; Thu, 09 Jan 2025 15:22:47 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton , linux-mm@kvack.org Cc: "Matthew Wilcox (Oracle)" Subject: [PATCH] mm: Remove PageTransTail() Date: Thu, 9 Jan 2025 15:22:21 +0000 Message-ID: <20250109152245.1591914-1-willy@infradead.org> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: E7806100002 X-Stat-Signature: aunu8ai5iy3rebi6g65dzouwe7q5uepy X-Rspam-User: X-HE-Tag: 1736436170-980062 X-HE-Meta: U2FsdGVkX1/lO0sHPjDD+7l/64HUXVlTXHvBMRGn31ajXXXQWcCjQcNKqUvaHHBMpJDwkdYFi3guG4CYI74IIIcyGfrX9SXew8Ft+weJ/dUn99NhbuliqQFBN1avyfToqkUbnbCFF/cx51/XjQ4N1n1dyU2OLKacxt8MGCurHUiKWYJx5CM8tZUpncgGyPU7ySZBK9y99JemW+T32JJeohIF44qKMhR8RVK+9vAXbcA/S1D6rMFN6mH6d1tVn0ZD34BBOVSuLv2kbPyoUiaZo5TnU3ULGB7/W4pVuy4fZzotYKr8j0eYr8f03Cg5FwITs/VB/HsV/h7TXer32LfbWoksMQEc6d/VmlRqw79k2hAQ3x4Y97hnJXbXzs58OSqOqk3zWMktt4kOPr+6na/h8dg7Fwhp6srFpyLjbj5Mp5t3kPXA04jCPC7tPRUyaANPOHrO451eIjo32cCmREUkuhnMMVWO6aXVUt2c9KT7vytClgsvWQbM76yD5dLFHRwBb7IV3QpJfxA7WTNX2GJKT5KD4VPTZ//5rwB2RzeNoJAIhN/F9n4fEGEtFn98mj6e+k8tYQ1oe44KifkFdguJZRFccVBPEz2FkTj7TK8JwPgIgl10z7gU9NZZE7GwcBnrS4Ier3fbbdSqZMdq4rCDfCj4/7CS6F90I2xHbLf6eEOBlD5QizoaTCA8TVmJK8vTbcimw3d/GYCD9Ruiwq9epDkkWI4w4IRbpdec6iT4wiHTrWWP5OV8gb++K3aHLJBMvb6d0hIf6tAP0ETK2eGCMYn9mTGdaDMgkV6F65Dl77KLf3+OYilEQOICEEzdDQjjlOrBuqILRfx2EcoIAAFuziPJinU6eWqHCgZJfHfhXliPdjSxd1jYql9pVGQSRDOPfx7v2a9zr3uFIKyl5hkutCzj3UJA2ovCT6lLNyvmbQP4CZLOfErTYRIf56dT7705SDBd/JfEfyMlK2I0n+g sRKbXwdo 8AewKP2IDDop+LK9j8zqONgRUF8tQWBwcf/HUux2LHVYsQmFRNAcTjqarR9i9BIiJIRmZMwNRc3mnN8EBfqXydJ717oorhpoE+lZSajfjWdpO0Sa4Pilyta6QkNo7zG/FXSGyFEof77N7bKdscPCr9z0AGYkLlOcd+/+PKNvnIXqlPr8UjS0Rgo7UDFiapl0ggBN+NJAiMadR4GQyn6Ik0m9U2Q25hDE9SMhHzVTqooVnqAY= 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: The last caller was removed in October. Also remove the FALSE definition of PageTransCompoundMap(); the normal definition was removed a few years ago. Signed-off-by: Matthew Wilcox (Oracle) Acked-by: David Hildenbrand Acked-by: Zi Yan --- include/linux/page-flags.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 691506bdf2c5..330929b6e062 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -894,21 +894,9 @@ static inline int PageTransCompound(const struct page *page) { return PageCompound(page); } - -/* - * PageTransTail returns true for both transparent huge pages - * and hugetlbfs pages, so it should only be called when it's known - * that hugetlbfs pages aren't involved. - */ -static inline int PageTransTail(const struct page *page) -{ - return PageTail(page); -} #else TESTPAGEFLAG_FALSE(TransHuge, transhuge) TESTPAGEFLAG_FALSE(TransCompound, transcompound) -TESTPAGEFLAG_FALSE(TransCompoundMap, transcompoundmap) -TESTPAGEFLAG_FALSE(TransTail, transtail) #endif #if defined(CONFIG_MEMORY_FAILURE) && defined(CONFIG_TRANSPARENT_HUGEPAGE)