Skip to content

Commit 289ccba

Browse files
yuzhaogoogletorvalds
authored andcommitted
include/linux/mm_inline.h: fold __update_lru_size() into its sole caller
All other references to the function were removed after commit a892cb6 ("mm/vmscan.c: use update_lru_size() in update_lru_sizes()"). Link: https://lore.kernel.org/linux-mm/[email protected]/ Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Yu Zhao <[email protected]> Reviewed-by: Alex Shi <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Matthew Wilcox <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Roman Gushchin <[email protected]> Cc: Vladimir Davydov <[email protected]> Cc: Vlastimil Babka <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent c1770e3 commit 289ccba

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

include/linux/mm_inline.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static inline int page_is_file_lru(struct page *page)
2424
return !PageSwapBacked(page);
2525
}
2626

27-
static __always_inline void __update_lru_size(struct lruvec *lruvec,
27+
static __always_inline void update_lru_size(struct lruvec *lruvec,
2828
enum lru_list lru, enum zone_type zid,
2929
int nr_pages)
3030
{
@@ -33,13 +33,6 @@ static __always_inline void __update_lru_size(struct lruvec *lruvec,
3333
__mod_lruvec_state(lruvec, NR_LRU_BASE + lru, nr_pages);
3434
__mod_zone_page_state(&pgdat->node_zones[zid],
3535
NR_ZONE_LRU_BASE + lru, nr_pages);
36-
}
37-
38-
static __always_inline void update_lru_size(struct lruvec *lruvec,
39-
enum lru_list lru, enum zone_type zid,
40-
int nr_pages)
41-
{
42-
__update_lru_size(lruvec, lru, zid, nr_pages);
4336
#ifdef CONFIG_MEMCG
4437
mem_cgroup_update_lru_size(lruvec, lru, zid, nr_pages);
4538
#endif

0 commit comments

Comments
 (0)