Re: [PATCH] mm: Remove unused page_is_file_lru() function

From: Lorenzo Stoakes (Oracle)

Date: Mon Mar 23 2026 - 08:22:38 EST


On Mon, Mar 23, 2026 at 05:03:04PM +0800, Ye Liu wrote:
> From: Ye Liu <liuye@xxxxxxxxxx>
>
> 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.
>
> Signed-off-by: Ye Liu <liuye@xxxxxxxxxx>

LGTM, so:

Reviewed-by: Lorenzo Stoakes (Oracle) <ljs@xxxxxxxxxx>

> ---
> include/linux/mm_inline.h | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/include/linux/mm_inline.h b/include/linux/mm_inline.h
> index ad50688d89db..4fa480bf1dd2 100644
> --- a/include/linux/mm_inline.h
> +++ b/include/linux/mm_inline.h
> @@ -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)
> --
> 2.43.0
>

Thanks, Lorenzo