]> Git Repo - linux.git/commit
mm: memcontrol: remove the pgdata parameter of mem_cgroup_page_lruvec
authorMuchun Song <[email protected]>
Tue, 29 Jun 2021 02:37:53 +0000 (19:37 -0700)
committerLinus Torvalds <[email protected]>
Tue, 29 Jun 2021 17:53:50 +0000 (10:53 -0700)
commita984226f457f849eb9c4ce727eeaa3b5080597d8
tree339912376e017cccacbcf5897a3a9cf25582e9e6
parent2884b6b7eed4fc14c0630fb16e56a4c66c786d33
mm: memcontrol: remove the pgdata parameter of mem_cgroup_page_lruvec

All the callers of mem_cgroup_page_lruvec() just pass page_pgdat(page) as
the 2nd parameter to it (except isolate_migratepages_block()).  But for
isolate_migratepages_block(), the page_pgdat(page) is also equal to the
local variable of @pgdat.  So mem_cgroup_page_lruvec() do not need the
pgdat parameter.  Just remove it to simplify the code.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Muchun Song <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Reviewed-by: Shakeel Butt <[email protected]>
Acked-by: Roman Gushchin <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Vladimir Davydov <[email protected]>
Cc: Xiongchun Duan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/memcontrol.h
mm/compaction.c
mm/memcontrol.c
mm/swap.c
mm/workingset.c
This page took 0.055874 seconds and 4 git commands to generate.