From patchwork Wed Aug 21 19:34:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13772025 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 859C6C52D7C for ; Wed, 21 Aug 2024 19:35:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6C2DB6B019F; Wed, 21 Aug 2024 15:35:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6745F6B01A0; Wed, 21 Aug 2024 15:35:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4ECC56B01A1; Wed, 21 Aug 2024 15:35:12 -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 2B8496B019F for ; Wed, 21 Aug 2024 15:35:12 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id DD663A9119 for ; Wed, 21 Aug 2024 19:35:11 +0000 (UTC) X-FDA: 82477256022.04.8F36ABD Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf21.hostedemail.com (Postfix) with ESMTP id 422BA1C001D for ; Wed, 21 Aug 2024 19:35:10 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=DjAQCtnV; spf=none (imf21.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=1724268803; 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=WTfKAvywvhG7fx5/3Y/15ASwygZFYxxage+aqiSBrsU=; b=kZ4hRJPNEvkAslaP9bRRp7fIi3ghtU0mmq5q4zzYKDMDoVpP5L87uy3Cq/aUJ8JoEw83ud odL8QMvo0ohuyH6D0R3mUQVw+IAPoVGPRfPQKzmqk/3FtqhebxCLO+3Ys8w2DmYvFTC/Hj Ql6pfssfvqKqDt06dnzIKGR4Sdmsye4= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=DjAQCtnV; spf=none (imf21.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-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724268803; a=rsa-sha256; cv=none; b=2qeQo9lhsjfgCyn9Bdxt6xgUGts3+UNRX9la0J+ukBuLtjrMaImAgMpuVkdgKGNM4UwJjT KULtIS3A8X/2jQK8W6/4NOioj6eTyb9xiZrq6r5HevSJPT2sWw7aicjYWkia9yhrfR9S3U cSuyhZfe0HRrepRueljBo1vRaDiBnYY= 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=WTfKAvywvhG7fx5/3Y/15ASwygZFYxxage+aqiSBrsU=; b=DjAQCtnV3jMm8iu067wu+Qr5Cu CjerHrxRxu836V35pS0wiXRDF4UYquh2YNJp3b3fCuu5mWuvXOP5xwgyAXjwCXgi4zazW9XsFqUaq YybU3J67oxBHAr/ISIvG0C4729Wo8A/KDerpkOCJuTl82sMdMXlFiPMPUKvrUn+PMAvHhMEruW3hF 5U+uX86iARzUbClb28wJuZ/nehUlFmwOQfE6JWzEc7Ji2mlb+cIaQmXBaWCyCcGadbpUO4aiI7p0+ +6KgZqGe/GR2u4HZALZetISi1tz6x89FZXjQ9Tt71ekeyResehRCRbW0xi9RXFhUqozRKeB6BeewN Z2OEaoxg==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1sgr6U-00000009cqb-3Pnq; Wed, 21 Aug 2024 19:34:46 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, x86@kernel.org Subject: [PATCH 01/10] mm: Remove PageActive Date: Wed, 21 Aug 2024 20:34:34 +0100 Message-ID: <20240821193445.2294269-2-willy@infradead.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240821193445.2294269-1-willy@infradead.org> References: <20240821193445.2294269-1-willy@infradead.org> MIME-Version: 1.0 X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 422BA1C001D X-Stat-Signature: tpyt51ugx8k5gjby3jciik9fn5dmqaq4 X-Rspam-User: X-HE-Tag: 1724268910-871822 X-HE-Meta: U2FsdGVkX18SVQFy4DCGER3zROr0Edg+Noy2NGF/8cb7qAnRrL7eGngGYJ9qlzwCRtjgkS/E00oUlwj/rePH7Y8bMaZkvltquk9U5SUNQlhyTemJelfIHuD5FV2AvScmM/fgHD6KQtD4lR64BWmb++uHgPvq+FZ+SkWjzS9enEFesnDAsevp+klzt8TRFeNyQ+3HzBvkjC6/ZNMlgorH7gJFdGs4fEoLmF1NRoz/vwZ0Fm+jc2kKL0OuocASAuyK+RNFNANmVjfzSjhsXcc+hlPNgl0LRM80JY8R+KOytjh5VWBEAJbHfIX0ktlVt7IPqk96PlD7cqrt7kT+DfEdA4Cc/+ibsWYLP6k77z6a2cEfIAhf80ZwuvGabQxZ25ut6cxhw5R9AkK04yZ8VInvu6CqgV0eunySLJozvie54H8fA6pWir47mR4R4YafCAVCU2XXmU/1uSuus5qZlCLwtouAI7RL9rPN1+YZyD09VC4CvIE3e3n7s+05LDQyxKb4O5tviSa+juNUsc4PlyHZDoU5aBRSjg02Enyiftt9QGRrb7A5JIVYUa4DOLvDprllPncHTCHk+4LSuN2bnMrzRWeJya7HcBoJjuBNPLQ6/TUgeaMhKXetLhURgLLB36yOmNTilW4gVrXUlhZj1Y704pERGpbzqOTeMcgZXWn7PEgcrvTTi/HcoeftwHYriBXEA/+2NH9yx+8jPHn2XAmuzdjHMvgwE6nPBQ3zt/DkQsq+IVqxECvMjHb9WbkTwakFGU3LTPwHkg8+Hebeiol2AVtv3E72ztiu9cKgV3WrtCd56p5f6e0VV0FGtk7tbWUXe2pgEAyrMs9DVh6UP8C2oXpRcDQVO5Zjx8VWIowaYvuwIS1+WlGL0F5CrbLXqMishVt0YRZoW13jpNz1Sm3OJkrqMBWbQ3erO8RRFWS6/dUhADnltDrqJaPpyO/cLAk/RjfP4F8tdH6lAAfX5IJ /rUPV2LQ yvFHrh2ZRBhN4MI7YHgEVSFExjoxP3/6xco1OQQZDzm2vAGEiN0oRes+gdt1KoSbhF1YULLd4AOD9LksePI/hwOwuLdkVDP5zBvQKXHvC2pfmjVSJmKiddxJ93NOMf5fYoq9EWs+e1kaX9TQ2HJAPhs10PJst+yIJQ5CmxwWtJkBWwCvuqE7k6x4ugYjL9joX5+rewQX4aMFCNcfQMtyBtbCiog== 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: This flag is now only used on folios, so we can remove all the page accessors. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/page-flags.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 0c738bda5d98..65171b8fd661 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -510,8 +510,9 @@ PAGEFLAG(Dirty, dirty, PF_HEAD) TESTSCFLAG(Dirty, dirty, PF_HEAD) __CLEARPAGEFLAG(Dirty, dirty, PF_HEAD) PAGEFLAG(LRU, lru, PF_HEAD) __CLEARPAGEFLAG(LRU, lru, PF_HEAD) TESTCLEARFLAG(LRU, lru, PF_HEAD) -PAGEFLAG(Active, active, PF_HEAD) __CLEARPAGEFLAG(Active, active, PF_HEAD) - TESTCLEARFLAG(Active, active, PF_HEAD) +FOLIO_FLAG(active, FOLIO_HEAD_PAGE) + __FOLIO_CLEAR_FLAG(active, FOLIO_HEAD_PAGE) + FOLIO_TEST_CLEAR_FLAG(active, FOLIO_HEAD_PAGE) PAGEFLAG(Workingset, workingset, PF_HEAD) TESTCLEARFLAG(Workingset, workingset, PF_HEAD) PAGEFLAG(Checked, checked, PF_NO_COMPOUND) /* Used by some filesystems */