diff options
author | 2024-11-15 19:02:28 +0000 | |
---|---|---|
committer | 2025-01-13 22:40:40 -0800 | |
commit | 8eb92ed254e5353f38e4a664dc5fa70c8ec95d1a (patch) | |
tree | 97dae1aa1f22de0a18c9408a5efd9e7da2a07d3c /lib/maple_tree.c | |
parent | mm: remove the non-useful else after a break in a if statement (diff) | |
download | wireguard-linux-8eb92ed254e5353f38e4a664dc5fa70c8ec95d1a.tar.xz wireguard-linux-8eb92ed254e5353f38e4a664dc5fa70c8ec95d1a.zip |
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 'lib/maple_tree.c')
0 files changed, 0 insertions, 0 deletions