* [PATCH] mm: Remove unused page_is_file_lru() function
@ 2026-03-23 9:03 Ye Liu
2026-03-23 9:21 ` David Hildenbrand (Arm)
2026-03-23 12:20 ` Lorenzo Stoakes (Oracle)
0 siblings, 2 replies; 3+ messages in thread
From: Ye Liu @ 2026-03-23 9:03 UTC (permalink / raw)
To: Andrew Morton, David Hildenbrand, Axel Rasmussen, Yuanchu Xie
Cc: Ye Liu, Lorenzo Stoakes, Liam R. Howlett, Vlastimil Babka,
Mike Rapoport, Suren Baghdasaryan, Michal Hocko, Wei Xu, linux-mm,
linux-kernel
From: Ye Liu <liuye@kylinos.cn>
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@kylinos.cn>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] mm: Remove unused page_is_file_lru() function
2026-03-23 9:03 [PATCH] mm: Remove unused page_is_file_lru() function Ye Liu
@ 2026-03-23 9:21 ` David Hildenbrand (Arm)
2026-03-23 12:20 ` Lorenzo Stoakes (Oracle)
1 sibling, 0 replies; 3+ messages in thread
From: David Hildenbrand (Arm) @ 2026-03-23 9:21 UTC (permalink / raw)
To: Ye Liu, Andrew Morton, Axel Rasmussen, Yuanchu Xie
Cc: Ye Liu, Lorenzo Stoakes, Liam R. Howlett, Vlastimil Babka,
Mike Rapoport, Suren Baghdasaryan, Michal Hocko, Wei Xu, linux-mm,
linux-kernel
On 3/23/26 10:03, Ye Liu wrote:
> From: Ye Liu <liuye@kylinos.cn>
>
> 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@kylinos.cn>
> ---
Acked-by: David Hildenbrand (Arm) <david@kernel.org>
--
Cheers,
David
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mm: Remove unused page_is_file_lru() function
2026-03-23 9:03 [PATCH] mm: Remove unused page_is_file_lru() function Ye Liu
2026-03-23 9:21 ` David Hildenbrand (Arm)
@ 2026-03-23 12:20 ` Lorenzo Stoakes (Oracle)
1 sibling, 0 replies; 3+ messages in thread
From: Lorenzo Stoakes (Oracle) @ 2026-03-23 12:20 UTC (permalink / raw)
To: Ye Liu
Cc: Andrew Morton, David Hildenbrand, Axel Rasmussen, Yuanchu Xie,
Ye Liu, Lorenzo Stoakes, Liam R. Howlett, Vlastimil Babka,
Mike Rapoport, Suren Baghdasaryan, Michal Hocko, Wei Xu, linux-mm,
linux-kernel
On Mon, Mar 23, 2026 at 05:03:04PM +0800, Ye Liu wrote:
> From: Ye Liu <liuye@kylinos.cn>
>
> 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@kylinos.cn>
LGTM, so:
Reviewed-by: Lorenzo Stoakes (Oracle) <ljs@kernel.org>
> ---
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-03-23 12:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-23 9:03 [PATCH] mm: Remove unused page_is_file_lru() function Ye Liu
2026-03-23 9:21 ` David Hildenbrand (Arm)
2026-03-23 12:20 ` Lorenzo Stoakes (Oracle)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox