From: Al Viro Date: Tue, 26 May 2026 23:16:24 +0000 (-0400) Subject: configs_attach_item(): drop unused parent_item argument X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=d4152c7562a8759ef98f882385121b8dee04606d;p=thirdparty%2Fkernel%2Flinux.git configs_attach_item(): drop unused parent_item argument That argument has been unused since the initial merge in 2005. Reviewed-by: Jan Kara Signed-off-by: Al Viro --- diff --git a/fs/configfs/dir.c b/fs/configfs/dir.c index b382d60e7ebc..2f3f3f504e2c 100644 --- a/fs/configfs/dir.c +++ b/fs/configfs/dir.c @@ -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;