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 <email@example.com>
Reviewed-by: Roman Gushchin <firstname.lastname@example.org>
Cc: Michal Hocko <email@example.com>
Cc: Tejun Heo <firstname.lastname@example.org>
Signed-off-by: Andrew Morton <email@example.com>
Signed-off-by: Linus Torvalds <firstname.lastname@example.org>
3 files changed