]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mm: remove unused page_is_file_lru() function
authorYe Liu <liuye@kylinos.cn>
Mon, 23 Mar 2026 09:03:04 +0000 (17:03 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 5 Apr 2026 20:53:36 +0000 (13:53 -0700)
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>
include/linux/mm_inline.h

index 2aedcff6a2c1f16dce914bff2dc84ed0087508c5..7fc2ced00f8f87a84f9a92db9d4b6ce0eefe140b 100644 (file)
@@ -30,11 +30,6 @@ static inline int folio_is_file_lru(const struct folio *folio)
        return !folio_test_swapbacked(folio);
 }
 
-static inline int page_is_file_lru(struct page *page)
-{
-       return folio_is_file_lru(page_folio(page));
-}
-
 static __always_inline void __update_lru_size(struct lruvec *lruvec,
                                enum lru_list lru, enum zone_type zid,
                                long nr_pages)