diff mbox series

[3/8] mm: Remove PageYoung and PageIdle definitions

Message ID 20240227192337.757313-4-willy@infradead.org (mailing list archive)
State New
Headers show
Series PageFlags cleanups | expand

Commit Message

Matthew Wilcox Feb. 27, 2024, 7:23 p.m. UTC
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) <willy@infradead.org>
---
 include/linux/page-flags.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

David Hildenbrand March 1, 2024, 11:25 a.m. UTC | #1
On 27.02.24 20:23, Matthew Wilcox (Oracle) wrote:
> 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) <willy@infradead.org>
> ---
>   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
>   
>   /*

Reviewed-by: David Hildenbrand <david@redhat.com>
diff mbox series

Patch

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
 
 /*