]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
functionfs: switch to simple_remove_by_name()
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 18 Sep 2025 02:55:33 +0000 (22:55 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 18 Nov 2025 04:57:39 +0000 (23:57 -0500)
commitc7747fafaba0dcdad3d7da240e961927b4865f98
tree197a53a9a49b729d361592d2b11e54e8fb0bebfa
parente5bf5ee266633cb18fff6f98f0b7d59a62819eee
functionfs: switch to simple_remove_by_name()

No need to return dentry from ffs_sb_create_file() or keep it around
afterwards.

To avoid subtle issues with getting to ffs from epfiles in
ffs_epfiles_destroy(), pass the superblock as explicit argument.
Callers have it anyway.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/usb/gadget/function/f_fs.c