]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit19e5eabb91dc5bc72a9ea13851c6f5f16531440d
treeb8cc4d191dfc8432af151ea9f0eecc8d64c586bb
parent40577e4e6d3fd9e498edd289b2f87bc4330998aa
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