bpf: add memlock precharge check for cgroup_local_storage
authorRoman Gushchin <guro@fb.com>
Thu, 30 May 2019 01:03:55 +0000 (18:03 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 31 May 2019 23:52:56 +0000 (16:52 -0700)
commitffc8b144d5d056dd0ab8d995c7345cdd6a589fc7
tree523f1fef5ad42f9e282d30390dc8ceb16d813d6c
parent576240cfaf206ea7d08ae7421088a788d861212d
bpf: add memlock precharge check for cgroup_local_storage

Cgroup local storage maps lack the memlock precharge check,
which is performed before the memory allocation for
most other bpf map types.

Let's add it in order to unify all map types.

Signed-off-by: Roman Gushchin <guro@fb.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/local_storage.c