diff options
author | Roman Gushchin <guro@fb.com> | 2020-12-02 00:58:33 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-12-03 05:32:45 +0300 |
commit | d5299b67dd59445902cd30cbc60a03c869cf1adb (patch) | |
tree | 8da721c013c8ad952eeacae9ac6bf67e531cfac6 /kernel/bpf/arraymap.c | |
parent | 48edc1f78aabeba35ed00e40c36f211de89e0090 (diff) | |
download | linux-d5299b67dd59445902cd30cbc60a03c869cf1adb.tar.xz |
bpf: Memcg-based memory accounting for bpf maps
This patch enables memcg-based memory accounting for memory allocated
by __bpf_map_area_alloc(), which is used by many types of bpf maps for
large initial memory allocations.
Please note, that __bpf_map_area_alloc() should not be used outside of
map creation paths without setting the active memory cgroup to the
map's memory cgroup.
Following patches in the series will refine the accounting for
some of the map types.
Signed-off-by: Roman Gushchin <guro@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20201201215900.3569844-8-guro@fb.com
Diffstat (limited to 'kernel/bpf/arraymap.c')
0 files changed, 0 insertions, 0 deletions