bpf: Refine memcg-based memory accounting for hashtab maps
authorRoman Gushchin <guro@fb.com>
Tue, 1 Dec 2020 21:58:38 +0000 (13:58 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 3 Dec 2020 02:32:45 +0000 (18:32 -0800)
commit881456811a33b9d3952897f4d01ee4d74fa2f30e
treeb8cc4d191dfc8432af151ea9f0eecc8d64c586bb
parent1440290adf7bb27602bbb7d8b2dc3d903ed3c6c9
bpf: Refine memcg-based memory accounting for hashtab maps

Include percpu objects and the size of map metadata into the
accounting.

Signed-off-by: Roman Gushchin <guro@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20201201215900.3569844-13-guro@fb.com
kernel/bpf/hashtab.c