diff options
| author | Roman Gushchin <roman.gushchin@linux.dev> | 2024-11-15 22:02:28 +0300 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2025-01-14 09:40:40 +0300 |
| commit | 8eb92ed254e5353f38e4a664dc5fa70c8ec95d1a (patch) | |
| tree | 97dae1aa1f22de0a18c9408a5efd9e7da2a07d3c /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 3472f639c692b28e7de345e90519430ad6ce2362 (diff) | |
| download | linux-8eb92ed254e5353f38e4a664dc5fa70c8ec95d1a.tar.xz | |
mm: swap_cgroup: allocate swap_cgroup map using vcalloc()
Currently swap_cgroup's map is constructed as a vmalloc()'s-based array of
pointers to individual struct pages. This brings an unnecessary
complexity into the code.
This patch turns the swap_cgroup's map into a single space
allocated by vcalloc().
[akpm@linux-foundation.org: s/vfree/kvfree/, per Shakeel]
Link: https://lkml.kernel.org/r/20241115190229.676440-1-roman.gushchin@linux.dev
Signed-off-by: Roman Gushchin <roman.gushchin@linux.dev>
Acked-by: Shakeel Butt <shakeel.butt@linux.dev>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
