]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
convert ibmasmfs
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 26 Feb 2024 07:06:37 +0000 (02:06 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 16 Nov 2025 06:35:04 +0000 (01:35 -0500)
commite6ef35deec697cb7f6d3b424808c135071a8729b
tree029e729fc659ca24e95a8f044c652a8c05290e6a
parentea800a515f2530bec0d56ea27faccb7909795e60
convert ibmasmfs

static contents for each "service processor", whatever the fuck it is.
Congruent subdirectories of root, created at mount time, taken out
by kill_litter_super().  All dentries created with d_alloc_name() and are
left pinned.  The odd part is that the list of service providers is
assumed to be unchanging - no locking, nothing to handle removals or
extra elements added later on.

... and it's a PCI device.  If you ever tell it to remove an instance,
you are fucked - it doesn't bother with removing its directory from filesystem,
it has a strange check that presumably wanted to be a check for removed
devices, but it had never been fleshed out.

Anyway, d_add() -> d_make_persistent()+dput() in ibmasmfs_create_dir() and
ibmasmfs_create_file(), and make the latter return int - no need to even
borrow that dentry, callers completely ignore it.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/misc/ibmasm/ibmasmfs.c