mm: Remove unused page_is_file_lru() function
Subsystems (3)
PATCH 1/1 mm: Remove unused page_is_file_lru() function
From: Ye Liu <[email protected]>
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.
--- include/linux/mm_inline.h | 5 ----- 1 file changed, 5 deletions(-)
include/linux/mm_inline.h +0 -5
@@ -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)
Signature · 1 line
2.43.0
Quoted 10 lines · Ye Liu
From: Ye Liu <[email protected]>
The
page_is_file_lru()wrapper function is no longer used. The kernel has moved to folio-based APIs, and all callers should usefolio_is_file_lru()instead.Remove the obsolete page-based wrapper function.
Signed-off-by Ye Liu <[email protected]>---
Signature · 3 lines
Cheers, David
Quoted 9 lines · Ye Liu
From: Ye Liu <[email protected]>
The
page_is_file_lru()wrapper function is no longer used. The kernel has moved to folio-based APIs, and all callers should usefolio_is_file_lru()instead.Remove the obsolete page-based wrapper function.
Signed-off-by Ye Liu <[email protected]>
LGTM, so:
Quoted 21 lines
--- include/linux/mm_inline.h | 5 ----- 1 file changed, 5 deletions(-)include/linux/mm_inline.h +0
-6@@ -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) --
Quoted 2 lines
2.43.0
Thanks, Lorenzo