]> exis.tech > repos - linux.git/commit
configfs_detach_prep(): pass configfs_dirent instead of dentry
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 12 May 2026 05:17:13 +0000 (01:17 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 8 Jun 2026 18:53:09 +0000 (14:53 -0400)
commit96551d7f9f7b59c87da1a6d1b072ab9219a2263e
tree5ee7d548c85f37ebdd976ec9892b6441ffec43ea
parent5cefe23f63742881229ea80a55b5f9e5021966bc
configfs_detach_prep(): pass configfs_dirent instead of dentry

The only thing it uses the argument for is its ->d_fsdata and
all callers have that already available.

Note that in the recursive call we are dealing with a (sub)directory
configfs_dirent, and for those ->s_dentry->d_fsdata points back
to configfs_dirent itself.

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