Skip to content

Commit 7da8988

Browse files
Matthew Wilcox (Oracle)akpm00
authored andcommitted
mm: remove PageYoung and PageIdle definitions
All callers have been converted to use folios, so remove the various set/clear/test functions defined on pages. Link: https://lkml.kernel.org/r/20240227192337.757313-4-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 0d84646 commit 7da8988

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/linux/page-flags.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -599,10 +599,10 @@ PAGEFLAG_FALSE(HWPoison, hwpoison)
599599
#endif
600600

601601
#if defined(CONFIG_PAGE_IDLE_FLAG) && defined(CONFIG_64BIT)
602-
TESTPAGEFLAG(Young, young, PF_ANY)
603-
SETPAGEFLAG(Young, young, PF_ANY)
604-
TESTCLEARFLAG(Young, young, PF_ANY)
605-
PAGEFLAG(Idle, idle, PF_ANY)
602+
FOLIO_TEST_FLAG(young, FOLIO_HEAD_PAGE)
603+
FOLIO_SET_FLAG(young, FOLIO_HEAD_PAGE)
604+
FOLIO_TEST_CLEAR_FLAG(young, FOLIO_HEAD_PAGE)
605+
FOLIO_FLAG(idle, FOLIO_HEAD_PAGE)
606606
#endif
607607

608608
/*

0 commit comments

Comments
 (0)