aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/security.c
diff options
context:
space:
mode:
authorMengEn Sun <[email protected]>2024-11-01 04:06:38 +0000
committerAndrew Morton <[email protected]>2024-11-15 06:49:19 +0000
commit2ea80b039b9af0b71c00378523b71c254fb99c23 (patch)
tree595a63bff410f556f4606ee2f3d9aecebb8b8e33 /rust/helpers/security.c
parentmm: mmap_lock: check trace_mmap_lock_$type_enabled() instead of regcount (diff)
downloadkernel-2ea80b039b9af0b71c00378523b71c254fb99c23.tar.gz
kernel-2ea80b039b9af0b71c00378523b71c254fb99c23.zip
vmstat: call fold_vm_zone_numa_events() before show per zone NUMA event
Since 5.14-rc1, NUMA events will only be folded from per-CPU statistics to per zone and global statistics when the user actually needs it. Currently, the kernel has performs the fold operation when reading /proc/vmstat, but does not perform the fold operation in /proc/zoneinfo. This can lead to inaccuracies in the following statistics in zoneinfo: - numa_hit - numa_miss - numa_foreign - numa_interleave - numa_local - numa_other Therefore, before printing per-zone vm_numa_event when reading /proc/zoneinfo, we should also perform the fold operation. Link: https://lkml.kernel.org/r/[email protected] Fixes: f19298b9516c ("mm/vmstat: convert NUMA statistics to basic NUMA counters") Signed-off-by: MengEn Sun <[email protected]> Reviewed-by: JinLiang Zheng <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'rust/helpers/security.c')
0 files changed, 0 insertions, 0 deletions