]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
convert functionfs
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 9 Mar 2025 03:22:29 +0000 (22:22 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 18 Nov 2025 04:59:05 +0000 (23:59 -0500)
commit6ca67378d0e79a914420cbc8f300b7aaf8dadde6
treee0935eb1457bea5fa3abffc27b39e1cf0a430338
parentc7747fafaba0dcdad3d7da240e961927b4865f98
convert functionfs

All files are regular; ep0 is there all along, other ep* may appear
and go away during the filesystem lifetime; all of those are guaranteed
to be gone by the time we umount it.

Object creation is in ffs_sb_create_file(), removals - at ->kill_sb()
time (for ep0) or by simple_remove_by_name() from ffs_epfiles_destroy()
(for the rest of them).

Switch ffs_sb_create_file() to simple_start_creating()/d_make_persistent()/
simple_done_creating() and that's it.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/usb/gadget/function/f_fs.c