mm/vmstat: move pgdemote_* out of CONFIG_NUMA_BALANCING
authorLi Zhijian <lizhijian@fujitsu.com>
Fri, 29 Dec 2023 02:26:51 +0000 (10:26 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 5 Jan 2024 18:17:47 +0000 (10:17 -0800)
commitb805ab3c6935d14654ccc28f16ffce7a13c2c528
tree4f32451db965330a4b9d8789a18572cd0812a192
parentfc8580edbaa664b952063371805e4550afd7a139
mm/vmstat: move pgdemote_* out of CONFIG_NUMA_BALANCING

Demotion can work well without CONFIG_NUMA_BALANCING.  But the commit
23e9f0138963 ("mm/vmstat: move pgdemote_* to per-node stats") wrongly hid
it behind CONFIG_NUMA_BALANCING.

Fix it by moving them out of CONFIG_NUMA_BALANCING.

Link: https://lkml.kernel.org/r/20231229022651.3229174-1-lizhijian@fujitsu.com
Fixes: 23e9f0138963 ("mm/vmstat: move pgdemote_* to per-node stats")
Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Cc: "Huang, Ying" <ying.huang@intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mmzone.h
mm/vmscan.c
mm/vmstat.c