mm: memcontrol: push down mem_cgroup_node_nr_lru_pages()
mem_cgroup_node_nr_lru_pages() is just a convenience wrapper around
lruvec_page_state() that takes bitmasks of lru indexes and aggregates the
counts for those.
Replace callsites where the bitmask is simple enough with direct
This removes the last extern user of mem_cgroup_node_nr_lru_pages(), so
make that function private again, too.
Signed-off-by: Johannes Weiner <firstname.lastname@example.org>
Reviewed-by: Roman Gushchin <email@example.com>
Cc: Michal Hocko <firstname.lastname@example.org>
Cc: Tejun Heo <email@example.com>
Signed-off-by: Andrew Morton <firstname.lastname@example.org>
Signed-off-by: Linus Torvalds <email@example.com>
3 files changed