]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
configs_attach_item(): drop unused parent_item argument
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 26 May 2026 23:16:24 +0000 (19:16 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 8 Jun 2026 18:54:05 +0000 (14:54 -0400)
That argument has been unused since the initial merge in 2005.

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

index b382d60e7ebc2ef7c4c906c2db5adfbb741b1ab1..2f3f3f504e2c7bb3280bfd4e78e0febc0457bfcd 100644 (file)
@@ -856,8 +856,7 @@ static void configfs_detach_item(struct dentry *dentry)
  * clean up the configfs items, and they expect their callers will
  * handle the dcache bits.
  */
-static int configfs_attach_item(struct config_item *parent_item,
-                               struct config_item *item,
+static int configfs_attach_item(struct config_item *item,
                                struct dentry *dentry,
                                struct configfs_fragment *frag)
 {
@@ -899,7 +898,7 @@ static int configfs_attach_group(struct config_item *parent_item,
        int ret;
        struct configfs_dirent *sd;
 
-       ret = configfs_attach_item(parent_item, item, dentry, frag);
+       ret = configfs_attach_item(item, dentry, frag);
        if (!ret) {
                sd = dentry->d_fsdata;
                sd->s_type |= CONFIGFS_USET_DIR;
@@ -1426,7 +1425,7 @@ static struct dentry *configfs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
        if (group)
                ret = configfs_attach_group(parent_item, item, dentry, frag);
        else
-               ret = configfs_attach_item(parent_item, item, dentry, frag);
+               ret = configfs_attach_item(item, dentry, frag);
 
        spin_lock(&configfs_dirent_lock);
        sd->s_type &= ~CONFIGFS_USET_IN_MKDIR;