]> git.ipfire.org Git - thirdparty/linux.git/commit
mm: vmalloc: streamline vmalloc memory accounting
authorJohannes Weiner <hannes@cmpxchg.org>
Mon, 23 Feb 2026 16:01:06 +0000 (11:01 -0500)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 5 Apr 2026 20:53:04 +0000 (13:53 -0700)
commitb9ec0ed907062a67a7cca2d04e7652aec06a0c35
treee2f47fc9ccb5dc19ada663acfe2dfd8302ebda96
parent6b0dd42d7681af148e13df3806f251bc3dc7c36e
mm: vmalloc: streamline vmalloc memory accounting

Use a vmstat counter instead of a custom, open-coded atomic. This has
the added benefit of making the data available per-node, and prepares
for cleaning up the memcg accounting as well.

Link: https://lkml.kernel.org/r/20260223160147.3792777-1-hannes@cmpxchg.org
Acked-by: Shakeel Butt <shakeel.butt@linux.dev>
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: Roman Gushchin <roman.gushchin@linux.dev>
Reviewed-by: Vishal Moola (Oracle) <vishal.moola@gmail.com>
Reviewed-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Cc: Joshua Hahn <joshua.hahnjy@gmail.com>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Muchun Song <muchun.song@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/meminfo.c
include/linux/mmzone.h
include/linux/vmalloc.h
mm/vmalloc.c
mm/vmstat.c