diff mbox series

[v2,1/6] mm: Remove inc/dec lruvec page state functions

Message ID 20231228085748.1083901-2-willy@infradead.org (mailing list archive)
State New
Headers show
Series Remove some lruvec page accounting functions | expand

Commit Message

Matthew Wilcox Dec. 28, 2023, 8:57 a.m. UTC
All callers of these have been converted to their folio equivalents.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
---
 include/linux/vmstat.h | 24 ------------------------
 1 file changed, 24 deletions(-)

Comments

Vlastimil Babka Jan. 2, 2024, 11:02 a.m. UTC | #1
On 12/28/23 09:57, Matthew Wilcox (Oracle) wrote:
> All callers of these have been converted to their folio equivalents.
> 
> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>

Reviewed-by: Vlastimil Babka <vbabka@suse.cz>

> ---
>  include/linux/vmstat.h | 24 ------------------------
>  1 file changed, 24 deletions(-)
> 
> diff --git a/include/linux/vmstat.h b/include/linux/vmstat.h
> index fed855bae6d8..147ae73e0ee7 100644
> --- a/include/linux/vmstat.h
> +++ b/include/linux/vmstat.h
> @@ -597,18 +597,6 @@ static inline void mod_lruvec_page_state(struct page *page,
>  
>  #endif /* CONFIG_MEMCG */
>  
> -static inline void __inc_lruvec_page_state(struct page *page,
> -					   enum node_stat_item idx)
> -{
> -	__mod_lruvec_page_state(page, idx, 1);
> -}
> -
> -static inline void __dec_lruvec_page_state(struct page *page,
> -					   enum node_stat_item idx)
> -{
> -	__mod_lruvec_page_state(page, idx, -1);
> -}
> -
>  static inline void __lruvec_stat_mod_folio(struct folio *folio,
>  					   enum node_stat_item idx, int val)
>  {
> @@ -627,18 +615,6 @@ static inline void __lruvec_stat_sub_folio(struct folio *folio,
>  	__lruvec_stat_mod_folio(folio, idx, -folio_nr_pages(folio));
>  }
>  
> -static inline void inc_lruvec_page_state(struct page *page,
> -					 enum node_stat_item idx)
> -{
> -	mod_lruvec_page_state(page, idx, 1);
> -}
> -
> -static inline void dec_lruvec_page_state(struct page *page,
> -					 enum node_stat_item idx)
> -{
> -	mod_lruvec_page_state(page, idx, -1);
> -}
> -
>  static inline void lruvec_stat_mod_folio(struct folio *folio,
>  					 enum node_stat_item idx, int val)
>  {
diff mbox series

Patch

diff --git a/include/linux/vmstat.h b/include/linux/vmstat.h
index fed855bae6d8..147ae73e0ee7 100644
--- a/include/linux/vmstat.h
+++ b/include/linux/vmstat.h
@@ -597,18 +597,6 @@  static inline void mod_lruvec_page_state(struct page *page,
 
 #endif /* CONFIG_MEMCG */
 
-static inline void __inc_lruvec_page_state(struct page *page,
-					   enum node_stat_item idx)
-{
-	__mod_lruvec_page_state(page, idx, 1);
-}
-
-static inline void __dec_lruvec_page_state(struct page *page,
-					   enum node_stat_item idx)
-{
-	__mod_lruvec_page_state(page, idx, -1);
-}
-
 static inline void __lruvec_stat_mod_folio(struct folio *folio,
 					   enum node_stat_item idx, int val)
 {
@@ -627,18 +615,6 @@  static inline void __lruvec_stat_sub_folio(struct folio *folio,
 	__lruvec_stat_mod_folio(folio, idx, -folio_nr_pages(folio));
 }
 
-static inline void inc_lruvec_page_state(struct page *page,
-					 enum node_stat_item idx)
-{
-	mod_lruvec_page_state(page, idx, 1);
-}
-
-static inline void dec_lruvec_page_state(struct page *page,
-					 enum node_stat_item idx)
-{
-	mod_lruvec_page_state(page, idx, -1);
-}
-
 static inline void lruvec_stat_mod_folio(struct folio *folio,
 					 enum node_stat_item idx, int val)
 {