Skip to content

Commit aa1b679

Browse files
yuzhaogoogleakpm00
authored andcommitted
Revert "include/linux/mm_inline.h: fold __update_lru_size() into its sole caller"
This patch undoes the following refactor: commit 289ccba ("include/linux/mm_inline.h: fold __update_lru_size() into its sole caller") The upcoming changes to include/linux/mm_inline.h will reuse __update_lru_size(). Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Yu Zhao <[email protected]> Reviewed-by: Miaohe Lin <[email protected]> Acked-by: Brian Geffon <[email protected]> Acked-by: Jan Alexander Steffens (heftig) <[email protected]> Acked-by: Oleksandr Natalenko <[email protected]> Acked-by: Steven Barrett <[email protected]> Acked-by: Suleiman Souhlal <[email protected]> Tested-by: Daniel Byrne <[email protected]> Tested-by: Donald Carr <[email protected]> Tested-by: Holger Hoffstätte <[email protected]> Tested-by: Konstantin Kharlamov <[email protected]> Tested-by: Shuang Zhai <[email protected]> Tested-by: Sofia Trinh <[email protected]> Tested-by: Vaibhav Jain <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Aneesh Kumar K.V <[email protected]> Cc: Barry Song <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Hillf Danton <[email protected]> Cc: Jens Axboe <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Jonathan Corbet <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Matthew Wilcox <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Michael Larabel <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Mike Rapoport <[email protected]> Cc: Mike Rapoport <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Qi Zheng <[email protected]> Cc: Tejun Heo <[email protected]> Cc: Vlastimil Babka <[email protected]> Cc: Will Deacon <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent f1e1a7b commit aa1b679

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

include/linux/mm_inline.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static inline int page_is_file_lru(struct page *page)
3434
return folio_is_file_lru(page_folio(page));
3535
}
3636

37-
static __always_inline void update_lru_size(struct lruvec *lruvec,
37+
static __always_inline void __update_lru_size(struct lruvec *lruvec,
3838
enum lru_list lru, enum zone_type zid,
3939
long nr_pages)
4040
{
@@ -43,6 +43,13 @@ static __always_inline void update_lru_size(struct lruvec *lruvec,
4343
__mod_lruvec_state(lruvec, NR_LRU_BASE + lru, nr_pages);
4444
__mod_zone_page_state(&pgdat->node_zones[zid],
4545
NR_ZONE_LRU_BASE + lru, nr_pages);
46+
}
47+
48+
static __always_inline void update_lru_size(struct lruvec *lruvec,
49+
enum lru_list lru, enum zone_type zid,
50+
long nr_pages)
51+
{
52+
__update_lru_size(lruvec, lru, zid, nr_pages);
4653
#ifdef CONFIG_MEMCG
4754
mem_cgroup_update_lru_size(lruvec, lru, zid, nr_pages);
4855
#endif

0 commit comments

Comments
 (0)