]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
new helper: simple_remove_by_name()
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 18 Sep 2025 02:19:10 +0000 (22:19 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 16 Nov 2025 06:35:01 +0000 (01:35 -0500)
commit4051a9115ad24bb9a691774730ca9c1dd56de665
tree6d001800fb5cfecf9daf74e56fe176ef97ae63b2
parent798a401660a151633cb171738a72a8f1efb9b0b4
new helper: simple_remove_by_name()

simple_recursive_removal(), but instead of victim dentry it takes
parent + name.

Used to be open-coded in fs/fuse/control.c, but there's no need to expose
the guts of that thing there and there are other potential users, so
let's lift it into libfs...

Acked-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/fuse/control.c
fs/libfs.c
include/linux/fs.h