summaryrefslogtreecommitdiffstats
path: root/kernel/bpf/inode.c
diff options
context:
space:
mode:
authorRoman Gushchin2019-05-30 03:03:59 +0200
committerAlexei Starovoitov2019-06-01 01:52:56 +0200
commitc85d69135a9175c50a823d04d62d932312d037b3 (patch)
treeedd6ec707ebbf68a89fc1c3fc2b2d06364978ad3 /kernel/bpf/inode.c
parentbpf: rework memlock-based memory accounting for maps (diff)
downloadkernel-qcow2-linux-c85d69135a9175c50a823d04d62d932312d037b3.tar.gz
kernel-qcow2-linux-c85d69135a9175c50a823d04d62d932312d037b3.tar.xz
kernel-qcow2-linux-c85d69135a9175c50a823d04d62d932312d037b3.zip
bpf: move memory size checks to bpf_map_charge_init()
Most bpf map types doing similar checks and bytes to pages conversion during memory allocation and charging. Let's unify these checks by moving them into bpf_map_charge_init(). Signed-off-by: Roman Gushchin <guro@fb.com> Acked-by: Song Liu <songliubraving@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/bpf/inode.c')
0 files changed, 0 insertions, 0 deletions