]> git.baikalelectronics.ru Git - kernel.git/commit
mm: restore node stat checking in /proc/sys/vm/stat_refresh
authorHugh Dickins <hughd@google.com>
Wed, 5 May 2021 01:37:51 +0000 (18:37 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 5 May 2021 18:27:25 +0000 (11:27 -0700)
commit9928bcb74999f721bd74d5f82e921cc8c334c8b9
tree9e19cf3c53360f70c0e26f0439e3eb30d485b2ac
parent7e83b2c32f35b96c2e92d83f81725f578a23418a
mm: restore node stat checking in /proc/sys/vm/stat_refresh

In v4.7 commit a736c0726445 ("mm: /proc/sys/vm/stat_refresh to force
vmstat update") introduced vmstat_refresh(), with its vmstat underflow
checking; then in v4.8 commit bde09193784f ("mm, vmstat: add
infrastructure for per-node vmstats") split NR_VM_NODE_STAT_ITEMS out of
NR_VM_ZONE_STAT_ITEMS without updating vmstat_refresh(): so it has been
missing out much of the vmstat underflow checking ever since.

Reinstate it.

Thanks to Roman Gushchin <guro@fb.com> for tangentially pointing this out.

Link: https://lkml.kernel.org/r/alpine.LSU.2.11.2102251502240.13363@eggly.anvils
Signed-off-by: Hugh Dickins <hughd@google.com>
Cc: Roman Gushchin <guro@fb.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmstat.c