Commit 1ade67cd authored by Matthew Wilcox (Oracle)'s avatar Matthew Wilcox (Oracle) Committed by Andrew Morton

mm: remove page_idle and page_young wrappers

All users have now been converted to the folio equivalents, so remove the
page wrappers.

Link: https://lkml.kernel.org/r/20240402201252.917342-4-willy@infradead.orgSigned-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 6c977f36
......@@ -119,29 +119,4 @@ static inline void folio_clear_idle(struct folio *folio)
}
#endif /* CONFIG_PAGE_IDLE_FLAG */
static inline bool page_is_young(struct page *page)
{
return folio_test_young(page_folio(page));
}
static inline void set_page_young(struct page *page)
{
folio_set_young(page_folio(page));
}
static inline bool test_and_clear_page_young(struct page *page)
{
return folio_test_clear_young(page_folio(page));
}
static inline bool page_is_idle(struct page *page)
{
return folio_test_idle(page_folio(page));
}
static inline void set_page_idle(struct page *page)
{
folio_set_idle(page_folio(page));
}
#endif /* _LINUX_MM_PAGE_IDLE_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment