]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
convert bpf
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 9 May 2024 16:26:53 +0000 (12:26 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 16 Nov 2025 06:35:03 +0000 (01:35 -0500)
commitc5055286f88fdedcff9c974b4b85fbe221bf0972
tree6c2969562de55e594efa72cdcdd380c54dea1138
parent1e508e05dd087b182143d9f55809e7feca662fb7
convert bpf

object creation goes through the normal VFS paths or approximation
thereof (user_path_create()/done_path_create() in case of bpf_obj_do_pin(),
open-coded simple_{start,done}_creating() in bpf_iter_link_pin_kernel()
at mount time), removals go entirely through the normal VFS paths (and
->unlink() is simple_unlink() there).

Enough to have bpf_dentry_finalize() use d_make_persistent() instead
of dget() and we are done.

Convert bpf_iter_link_pin_kernel() to simple_{start,done}_creating(),
while we are at it.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/bpf/inode.c