bpf: follow idr code convention
authorShaohua Li <shli@fb.com>
Tue, 27 Mar 2018 18:53:21 +0000 (11:53 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 27 Mar 2018 20:23:08 +0000 (22:23 +0200)
commitb76354cdfefb68bc017065850a34d486887a4f7b
tree010592775439a8ab382cb55421bb36d92db4a491
parent2abb5fad3a9336ea02bf832175b9e4fd5b946e47
bpf: follow idr code convention

Generally we do a preload before doing idr allocation. This also help
improve the allocation success rate in memory pressure.

Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
kernel/bpf/syscall.c