diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2024-04-02 21:12:50 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-04-25 20:56:35 -0700 |
commit | 1ade67cd22e4aeb74ed0b86bab6760bbcf9e2f06 (patch) | |
tree | 3781ac0786c86cb03ab038300b5433333b81757d /include/linux/page_idle.h | |
parent | 6c977f36dc36baec8ad15faccbc6a08315eaa195 (diff) | |
download | linux-stable-1ade67cd22e4aeb74ed0b86bab6760bbcf9e2f06.tar.gz linux-stable-1ade67cd22e4aeb74ed0b86bab6760bbcf9e2f06.tar.bz2 linux-stable-1ade67cd22e4aeb74ed0b86bab6760bbcf9e2f06.zip |
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.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>
Diffstat (limited to 'include/linux/page_idle.h')
-rw-r--r-- | include/linux/page_idle.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/include/linux/page_idle.h b/include/linux/page_idle.h index 511e22ef459f..6357f1e7918a 100644 --- a/include/linux/page_idle.h +++ b/include/linux/page_idle.h @@ -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 */ |