]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
configfs_do_depend_item(): pass configfs_dirent instead of dentry
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 12 May 2026 05:25:48 +0000 (01:25 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 8 Jun 2026 18:53:09 +0000 (14:53 -0400)
commitcbd6bbd48732987de51e8a6d4917875daa636079
tree29a0b23303256d31fb37b1ae80a765e2aa76a2b8
parent764682e0118432260191d194edbdaff208260483
configfs_do_depend_item(): pass configfs_dirent instead of dentry

Again, the only thing it uses the argument for is its ->d_fsdata
and callers already have that - as the matter of fact, they are
passing ->s_dentry of that configfs_dirent, so that the function
could get it back as ->d_fsdata of that.  With nothing else in
dentry even looked at...

configfs_dirent in question is a directory one - in this case those
are subdirectories of root (aka roots of "subsystem" trees).

Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/configfs/dir.c