From patchwork Tue Feb 27 19:23:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13574329 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 8F882C54E41 for ; Tue, 27 Feb 2024 19:23:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B481A6B00E6; Tue, 27 Feb 2024 14:23:43 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6915B6B00E3; Tue, 27 Feb 2024 14:23:43 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 446D36B00E2; Tue, 27 Feb 2024 14:23:43 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 04ADC6B00E6 for ; Tue, 27 Feb 2024 14:23:43 -0500 (EST) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id D2310140D9F for ; Tue, 27 Feb 2024 19:23:42 +0000 (UTC) X-FDA: 81838558284.16.0D5B7B5 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf16.hostedemail.com (Postfix) with ESMTP id 5C367180009 for ; Tue, 27 Feb 2024 19:23:40 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=DZr0oifW; dmarc=none; spf=none (imf16.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=1709061821; a=rsa-sha256; cv=none; b=QeUR10qB5UVEUFdUJYmzjZwkxnhksx+Vk+QINEYUMmD3h6bCnsa46WNNP5JRN7M9OLYeFW 8gtGEb7FtMSUrYwEE8mDMPnXMDFG5KDkQ5vhag/K4N4tgy5EY3H7fa0FTsOB5vblMFD8rW kAzQOtkGhAHoLj/MdXypFCzLp1hY+FQ= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=DZr0oifW; dmarc=none; spf=none (imf16.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=1709061821; 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=KlfwxT5aWjqFNbR42eGyPERHWLte+mw2TQprAPR5h+0=; b=j+tWpUPEdQcR39zo5nuf5gTh8VpB3y0USG3ArTt6HZJecf4r2BhsrVDi1I5pQpnpv3HsfD XWKmqhd+36hqqSBHDCpVKIXPYDTICOg5tPHN4GsHhOxp+LwGaOOmKl/OADYCbSaTDnc/mb JOIPY2gYHAfBcyaVQGxvxOmYjKT5KQk= 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=KlfwxT5aWjqFNbR42eGyPERHWLte+mw2TQprAPR5h+0=; b=DZr0oifW0vDNpDIVtGzz7ZgC5U YrAGlSFoMg7NNzgpzr/gIS7Iq8KIgiloTfxxmrPYoOvgpLbPymDAh+2U0bbgqjIE4gbrIDKaHIDNl 1jkO5KCo47gt2EuQcttD9ZIEWMQOdISuviTX9rW8IXOXSF68FSWK3IkirEhIsZlPPAIdnAjg9tkwZ cIRaVGY/IUTKtejbmIUwBB9NnurP4AJ+9jzBvc9DriF6FWkFj0fZR+3zr/BbYOdnnqUN1P+CXSd7f ZlXCzGMNgeT3SSv0s5sGNVQtVx0C+qsVgTgE5wTDoi8SB2tD7GXhdTseeMv0D7/ZDvHpPvp6AzsJC uvxafLHA==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rf33D-00000003B14-0SCM; Tue, 27 Feb 2024 19:23:39 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org Subject: [PATCH 3/8] mm: Remove PageYoung and PageIdle definitions Date: Tue, 27 Feb 2024 19:23:30 +0000 Message-ID: <20240227192337.757313-4-willy@infradead.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240227192337.757313-1-willy@infradead.org> References: <20240227192337.757313-1-willy@infradead.org> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 5C367180009 X-Stat-Signature: gnu9a5q1uqon71y17skpyxkfrkoq1pdr X-HE-Tag: 1709061820-923052 X-HE-Meta: U2FsdGVkX1/jMzmOVymA9ZylEDQmZZb6uj72ebaPMmqIXFcEL2ypSn+wRKM1zXSiTLz/vxiR9BbenPkD4GMHz7MD74hRqwb5ApXF9AeMAC4aMsj/dgyNpvfnedhXmuNr7RryuhfuA9YXMjyF/5QKrL2XAYVI3tSj7dgQgPPok86PjLFGm4QxSR6cl6sq6XcoNAF0eXORHqZ73o1eco16X4Diu8VVh6FOpSbgmb6zOEjfbzCG/59n6x4O6B2thXc6xEPWD+n3GZjzaS2YFF+FAq8TVTZUczJqxvA9TLmB/HXx2W7DZEYKaq4ay7AEw3k//x8ylCq9Hx6YowdD7hZoitGnkgeAl6cwxFq9VVhZA/4Cl5rwlhPzu8jRJl369nfQ7KlytGgYdE3cSJ+GwtjYwBsZASPp1eV8gdj7MUxtsTz2KJCEkA+d4jt1/3CSifLwjnnuqE79F8018NirPz/ZK3uA2fin95Xt3CmAkVBkZ5Orgl93y/zZcAAn0LlH+qDRbbP6Z1oVDkNaMwaPWZ/rJ4MHI/wFNPDN73fHnC/A6GX8ItPENVA5czG/cCL24lY4CqfiH7urF3eBgIE4ihQgwmQcdf1WO8RhF4wOtRavY8qNorxAa83f4Ea9RREM76RiNQPS11KcYb4EXS+qyZ5J63fI0Ok9OsvZp6DTyWgDWzO8u04aDEc36/bCn2k0nelvR/BDx1C74j0VTzZJLyEUwKQe3epxTsLsdA4SNxs0pErsDjl5WmssY1etfuGAnZ0tTCUcgL6uaRquB7KcHAfiVs0bRTdKxEM1Bvoi5TSMNXtEZOvHt9sN7lFcIxQJQctnEkabjzvUqQ+GfxhV3n2BiIgrmqufZ3wtodLZcmLh0fjc0Uadmywbbw== 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 been converted to use folios, so remove the various set/clear/test functions defined on pages. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: David Hildenbrand --- include/linux/page-flags.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index d8f5127ae72e..582ca7400eca 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -599,10 +599,10 @@ PAGEFLAG_FALSE(HWPoison, hwpoison) #endif #if defined(CONFIG_PAGE_IDLE_FLAG) && defined(CONFIG_64BIT) -TESTPAGEFLAG(Young, young, PF_ANY) -SETPAGEFLAG(Young, young, PF_ANY) -TESTCLEARFLAG(Young, young, PF_ANY) -PAGEFLAG(Idle, idle, PF_ANY) +FOLIO_TEST_FLAG(young, FOLIO_HEAD_PAGE) +FOLIO_SET_FLAG(young, FOLIO_HEAD_PAGE) +FOLIO_TEST_CLEAR_FLAG(young, FOLIO_HEAD_PAGE) +FOLIO_FLAG(idle, FOLIO_HEAD_PAGE) #endif /*