]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
functionfs: don't bother with ffs->ref in ffs_data_{opened,closed}()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 17 Nov 2025 19:40:21 +0000 (14:40 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 18 Nov 2025 04:52:57 +0000 (23:52 -0500)
commitfe47466282a69499ae17a22f064e827badb77078
tree4e37aa137072205ab9a8a2b1c6fbfe0b38cba256
parentfcb8985143540cbcb8e91c0ea8b7fb5d37c88177
functionfs: don't bother with ffs->ref in ffs_data_{opened,closed}()

A reference is held by the superblock (it's dropped in ffs_kill_sb())
and filesystem will not get to ->kill_sb() while there are any opened
files, TYVM...

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