diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2026-05-12 03:13:37 -0400 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2026-06-08 14:53:09 -0400 |
| commit | abe91a2aa9c4a704e290e0e164228ff20a123c0a (patch) | |
| tree | d14873ea0ba647c0af2e16f14857ab20b52234e8 /rust/kernel/alloc/kvec/errors.rs | |
| parent | 05a4d3d1b676c42ea676e39a8b459eadf81d8d37 (diff) | |
switch configfs_detach_{group,item}() to passing dentry
... and there's no need to grab/drop it, or check for NULL - none
of the callers would even get there with NULL dentry and all of
them have the sucker pinned
Note that if sd is a directory configfs_dirent, we have sd->s_element
pointing to config_item with item->ci_dentry equal to sd->s_dentry.
Which is the only reason why detach_groups() gets away with using
the latter for locking the inode and the former for removal.
Aren't redundant data structures wonderful, for obfuscation if nothing
else?
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions
