Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm: remove unused page_is_file_lru() function

The page_is_file_lru() wrapper function is no longer used. The kernel has
moved to folio-based APIs, and all callers should use folio_is_file_lru()
instead.

Remove the obsolete page-based wrapper function.

Link: https://lkml.kernel.org/r/20260323090305.798057-1-ye.liu@linux.dev
Signed-off-by: Ye Liu <liuye@kylinos.cn>
Acked-by: David Hildenbrand (Arm) <david@kernel.org>
Reviewed-by: Lorenzo Stoakes (Oracle) <ljs@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Ye Liu and committed by
Andrew Morton
54fdcbfe 3f74e30d

-5
-5
include/linux/mm_inline.h
··· 30 30 return !folio_test_swapbacked(folio); 31 31 } 32 32 33 - static inline int page_is_file_lru(struct page *page) 34 - { 35 - return folio_is_file_lru(page_folio(page)); 36 - } 37 - 38 33 static __always_inline void __update_lru_size(struct lruvec *lruvec, 39 34 enum lru_list lru, enum zone_type zid, 40 35 long nr_pages)