bpf, maps: add release callback
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 15 Jun 2016 20:47:12 +0000 (22:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Jun 2016 06:42:57 +0000 (23:42 -0700)
commit61d1b6a42fec61c5065f54cc62cef02b483c69fb
treeeb4b02ef08e8f73fd394fadb0b5e15008394c142
parentb478af0cd7957faca83779fe6832abae163f7159
bpf, maps: add release callback

Add a release callback for maps that is invoked when the last
reference to its struct file is gone and the struct file about
to be released by vfs. The handler will be used by fd array maps.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/bpf.h
kernel/bpf/syscall.c