Lines Matching refs:parent
40 * But parent configfs_subsystem is NULL when config_item is root.
186 * Allocates a new configfs_dirent and links it to the parent configfs_dirent
219 * name for the same parent.
221 * called with parent inode's i_mutex held
362 int configfs_create_link(struct configfs_dirent *target, struct dentry *parent,
367 struct configfs_dirent *p = parent->d_fsdata;
393 struct dentry * parent = dget(d->d_parent);
398 simple_rmdir(d_inode(parent),d);
402 dput(parent);
657 * We could, perhaps, tweak our parent's ->mkdir for a minute and
666 /* We trust the caller holds a reference to parent */
667 struct dentry *child, *parent = parent_group->cg_item.ci_dentry;
673 child = d_alloc_name(parent, group->cg_item.ci_name);
753 * We hold a reference on the parent for the child's ci_parent
760 * We hold a reference on the child for ci_entry on the parent's
917 * and that item holds a valid reference to the parent. Also, it
1011 * Note that configfs_detach_prep() expects the parent to be locked when it
1012 * is called, but we lock the parent *inside* configfs_depend_prep(). We
1194 struct config_group *root, *parent;
1202 parent = target->ci_group;
1207 if (configfs_is_root(&parent->cg_item)) {
1209 root = parent;
1211 target_subsys = parent->cg_subsys;
1213 for (root = parent; !configfs_is_root(&root->cg_item);
1382 * Make racing rmdir() fail if it did not tag parent with
1427 * link_obj()/link_group() took a reference from child->parent,
1428 * so the parent is safely pinned. We can drop our working
1714 * configfs_register_group - creates a parent-child relation between two groups
1715 * @parent_group: parent group
1719 * parent dentry.
1727 struct dentry *parent;
1739 parent = parent_group->cg_item.ci_dentry;
1741 inode_lock_nested(d_inode(parent), I_MUTEX_PARENT);
1749 inode_unlock(d_inode(parent));
1753 inode_unlock(d_inode(parent));
1763 * configfs_unregister_group() - unregisters a child group from its parent
1764 * @group: parent group to be unregistered
1772 struct dentry *parent = group->cg_item.ci_parent->ci_dentry;
1780 inode_lock_nested(d_inode(parent), I_MUTEX_PARENT);
1789 fsnotify_rmdir(d_inode(parent), dentry);
1790 inode_unlock(d_inode(parent));
1802 * @parent_group: parent group
1806 * boilerplate to allocate and register a child group with its parent. We need