]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: add DEVICE_ZONE to FOR_ALL_ZONES
authorHao Lee <haolee.swjtu@gmail.com>
Sun, 7 Aug 2022 15:44:42 +0000 (15:44 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 17 Aug 2022 20:56:07 +0000 (13:56 -0700)
commitbf5ec5774ade4545485a4ec38af40b415198be58
tree5f36c1663a5b70a17110ee0507df115d4fdd1a91
parent649b57210f213f05277d159614b13732e8bf7388
mm: add DEVICE_ZONE to FOR_ALL_ZONES

FOR_ALL_ZONES should be consistent with enum zone_type.  Otherwise,
__count_zid_vm_events have the potential to add count to wrong item when
zid is ZONE_DEVICE.

Link: https://lkml.kernel.org/r/20220807154442.GA18167@haolee.io
Signed-off-by: Hao Lee <haolee.swjtu@gmail.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/vm_event_item.h
mm/vmstat.c