mm: vmscan: consistent update to pgrefill

The vmstat pgrefill is useful together with pgscan and pgsteal stats to
measure the reclaim efficiency.  However vmstat's pgrefill is not updated
consistently at system level.  It gets updated for both global and memcg
reclaim however pgscan and pgsteal are updated for only global reclaim.
So, update pgrefill only for global reclaim.  If someone is interested in
the stats representing both system level as well as memcg level reclaim,
then consult the root memcg's memory.stat instead of /proc/vmstat.

Signed-off-by: Shakeel Butt <>
Signed-off-by: Andrew Morton <>
Acked-by: Yafang Shao <>
Acked-by: Roman Gushchin <>
Acked-by: Chris Down <>
Cc: Johannes Weiner <>
Cc: Michal Hocko <>
Signed-off-by: Linus Torvalds <>
1 file changed