From patchwork Wed Aug 21 19:34:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13772022 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 AD2E7C52D6F for ; Wed, 21 Aug 2024 19:35:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DC98F6B0197; Wed, 21 Aug 2024 15:35:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D520C6B0198; Wed, 21 Aug 2024 15:35:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BF2816B0199; Wed, 21 Aug 2024 15:35:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id A01F76B0197 for ; Wed, 21 Aug 2024 15:35:02 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 4E0D680FDF for ; Wed, 21 Aug 2024 19:35:02 +0000 (UTC) X-FDA: 82477255644.11.9F3388A Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf09.hostedemail.com (Postfix) with ESMTP id 9FDD214000F for ; Wed, 21 Aug 2024 19:35:00 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=i2MhATVc; 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; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724268861; 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=Z1DuzeAr1D4ZoS8EJ71yYTgQwfxw4lV4F5mPx3QubfY=; b=XnG+/jFbh/T9qfqm4DBqvqnbZYvzX6l1R2wudxE8c8Xfo90uDdqFPNIr56UFR9XeSK1BEr 3BZMJCApkEytYV1IlyyApjlRYZITlmdsFuo3yLXitWzQ8Bi9meEM/jqU7QQ5vov4uDKHOJ QSxgZTn0+axn9hRBUDHeDEUpLG36Fl4= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=i2MhATVc; 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; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724268861; a=rsa-sha256; cv=none; b=c9lFx/1NcKTr7gSWOk2R1naHsP7b/BVxJYqgqPx1+KZWWSE9v+DKiXu0h6tqDRwLT1hz4S G49wWmF2YNSV1yi52OHCyfS7wNLxTxW0kvWp6kKL39BJqRM+ui4aimI4OsBe4ICgMeQ3An eYh6FwzjWG4dGcmm8bLbRELNoITnfGQ= 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=Z1DuzeAr1D4ZoS8EJ71yYTgQwfxw4lV4F5mPx3QubfY=; b=i2MhATVc9Iivb+xtCGY94TQ6Zm 7FRxDEnCniqrIenwJbxD8HymbGZeWIEBbT8UW7HfQkG1TCCmdHazSXeIzDRkTHOMN9oq5644o9BPj hSg1J0ZoRSA5ENZuS7GJITb36NyCvjm65bVZJGBIVWHst+kjQdl7mZwGSBkSGr0HLA0oraGuJI6s8 zyuYwfDNvmJppUp+RuejqII6yyVZTdlrk7poknJ2jRb1WGb4War8zfLaXhdEfNsUfPsHmuVrvYsV6 NpMx0s5Qmf6ZbN7zFPxy54ZxJlkF/PNiaDlRlensptJUSgEWvVZjLZOo/+D53bd5esqFL8T8/28G+ BTFlyHqQ==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1sgr6U-00000009cqd-3niY; 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 02/10] mm: Remove PageSwapBacked Date: Wed, 21 Aug 2024 20:34:35 +0100 Message-ID: <20240821193445.2294269-3-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: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: 9FDD214000F X-Stat-Signature: 8d553ze1dz8w3s5bfncgfjgzj54ue4k1 X-HE-Tag: 1724268900-768329 X-HE-Meta: U2FsdGVkX19zKK83Zcm2lCO1+EO1/hbTg0BD24B9JF7iCkNRCZkzqSTgowzRoMz6ajHFqce6gf0wAdP2YMRm897kPrlMJHKha2KqzEwPz8PrveHrXoSQAr8CBw2jX1QjvM9dRAFMVKb/LLI9tHamZ55Ha9iYTXU5Dk5VSz8gzuIiR0ITCE/7gj5UnD5KoqlPFqlXNYLs+ilKk4Hvvjw2Z+RKtt0frsbLw706TWC3iZGVT8IsXz+gtNx2DAvqCXtvM4EtzNhGKg16+ozBaNcAEovfWmUnsr4TVXmgcM1EQJl+261uajplNuJVUqLViO0fVKe/07TIVD69aSmzwQE4/vstzIIaaP8noWOUxicH2kKwXLJfa0PSt+C7j7PMcF289/6Wmq55BnupmaFpsHRBzkHUhLXDLxm5+q1caV4Wv4FA/sX/Wyrk5KOec6v5maA5+pRBGa0VGcoab8EQk74hVluvsIaWXtn4PnoLuwrdKILdB5J/ps1dKGFIeJwuhdbLM/QsWV1UeJ9BIrX0n9788oXerZtjxleseUjsc3yS1kr4DBiG3uIRkV8k+WOuKtPKP3yMKQNlmFR2Ayy+DghZTO8X0e4+yRH2QcU00Jq44KCpQGKUK0rxIv4RZoldxTp3Wd/CTsvmh3iZZhON4i37P+Ej7+h827WJMzqD113ck138LEzThqfD6KJv+BeDL9QOiqlUji3Y/h20i9uOfvSIbPs59GVvizB5dGmQ+tWdQhomlAUg6bzJiPIzYwnGhNYlqTEbVC54+orWWlxpqDfvbiWXFGL3dBcThRp/Hm49g/o6bj2wEY0ZGraMZnPmFcIb81Hi9mtyICn1HEdigoxFcq6XCExSc5OntlgHi0nNY7jcsel6fezXP5w2gf8Hj2SB2F5Ga8aGNd4puCbr1ndes0WPzSy0H91urb6EXfK04po2H8M2tXeHXSJs8EZB5zy0q+1cVvbI2T5N8raQBuy SVP/8itc ivL0gVBJ4FbWUusEtIvE4QOzBv1TA3hX5OeIknm3wKglRrXdbhzft/wa4/r92ywc1ZjUEXL2MElywKfnv3jNslOJKN4S7qsoVM0N43fQ54ERgqUdZUM6Iit2oEXr0c2ABEoYD34+6HQc++Xjvm/YesyuWIGKjecNOCuc41sbURUFZJ0m+rwpNPDC9Wiij65ELe7wCcZfRA0XFL+TFJXbXhPF/XA== 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 65171b8fd661..5558d35cdcc3 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -528,9 +528,9 @@ PAGEFLAG(XenRemapped, xen_remapped, PF_NO_COMPOUND) PAGEFLAG(Reserved, reserved, PF_NO_COMPOUND) __CLEARPAGEFLAG(Reserved, reserved, PF_NO_COMPOUND) __SETPAGEFLAG(Reserved, reserved, PF_NO_COMPOUND) -PAGEFLAG(SwapBacked, swapbacked, PF_NO_TAIL) - __CLEARPAGEFLAG(SwapBacked, swapbacked, PF_NO_TAIL) - __SETPAGEFLAG(SwapBacked, swapbacked, PF_NO_TAIL) +FOLIO_FLAG(swapbacked, FOLIO_HEAD_PAGE) + __FOLIO_CLEAR_FLAG(swapbacked, FOLIO_HEAD_PAGE) + __FOLIO_SET_FLAG(swapbacked, FOLIO_HEAD_PAGE) /* * Private page markings that may be used by the filesystem that owns the page