OSDN Git Service

bpf: Refine memcg-based memory accounting for sockmap and sockhash maps
authorRoman Gushchin <guro@fb.com>
Tue, 1 Dec 2020 21:58:42 +0000 (13:58 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 3 Dec 2020 02:32:46 +0000 (18:32 -0800)
commit7846dd9f835e248901a9f77a43745f8f1de04741
tree773a44945d1e25b9cae0415d924d644a1516c95b
parente9aae8beba825e4670463ddcf420b954f18d5ced
bpf: Refine memcg-based memory accounting for sockmap and sockhash maps

Include internal metadata into the memcg-based memory accounting.
Also include the memory allocated on updating an element.

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