Lines Matching refs:cg_item

628 	struct dentry * dentry = dget(group->cg_item.ci_dentry);  in detach_groups()
677 struct dentry *child, *parent = parent_group->cg_item.ci_dentry; in create_default_group()
679 if (!group->cg_item.ci_name) in create_default_group()
680 group->cg_item.ci_name = group->cg_item.ci_namebuf; in create_default_group()
683 child = d_alloc_name(parent, group->cg_item.ci_name); in create_default_group()
687 ret = configfs_attach_group(&parent_group->cg_item, in create_default_group()
688 &group->cg_item, child, frag); in create_default_group()
725 config_item_put(&g->cg_item); in configfs_remove_default_groups()
784 unlink_obj(&group->cg_item); in unlink_group()
792 link_obj(&parent_group->cg_item, &group->cg_item); in link_group()
796 else if (configfs_is_root(&parent_group->cg_item)) in link_group()
1123 struct config_item *s_item = &subsys->su_group.cg_item; in configfs_depend_item()
1217 if (configfs_is_root(&parent->cg_item)) { in configfs_depend_item_unlocked()
1223 for (root = parent; !configfs_is_root(&root->cg_item); in configfs_depend_item_unlocked()
1224 root = root->cg_item.ci_group) in configfs_depend_item_unlocked()
1234 inode_lock(d_inode(root->cg_item.ci_dentry)); in configfs_depend_item_unlocked()
1241 root->cg_item.ci_dentry->d_fsdata, in configfs_depend_item_unlocked()
1242 &target_subsys->su_group.cg_item); in configfs_depend_item_unlocked()
1246 subsys_sd = target_subsys->su_group.cg_item.ci_dentry->d_fsdata; in configfs_depend_item_unlocked()
1258 inode_unlock(d_inode(root->cg_item.ci_dentry)); in configfs_depend_item_unlocked()
1319 if (!subsys->su_group.cg_item.ci_type) { in configfs_mkdir()
1323 subsys_owner = subsys->su_group.cg_item.ci_type->ct_owner; in configfs_mkdir()
1344 item = &group->cg_item; in configfs_mkdir()
1473 BUG_ON(!subsys->su_group.cg_item.ci_type); in configfs_rmdir()
1474 subsys_owner = subsys->su_group.cg_item.ci_type->ct_owner; in configfs_rmdir()
1749 parent = parent_group->cg_item.ci_dentry; in configfs_register_group()
1757 configfs_dir_set_ready(group->cg_item.ci_dentry->d_fsdata); in configfs_register_group()
1781 struct dentry *dentry = group->cg_item.ci_dentry; in configfs_unregister_group()
1782 struct dentry *parent = group->cg_item.ci_parent->ci_dentry; in configfs_unregister_group()
1795 configfs_detach_group(&group->cg_item); in configfs_unregister_group()
1873 if (!group->cg_item.ci_name) in configfs_register_subsystem()
1874 group->cg_item.ci_name = group->cg_item.ci_namebuf; in configfs_register_subsystem()
1884 dentry = d_alloc_name(root, group->cg_item.ci_name); in configfs_register_subsystem()
1888 err = configfs_attach_group(sd->s_element, &group->cg_item, in configfs_register_subsystem()
1917 struct dentry *dentry = group->cg_item.ci_dentry; in configfs_unregister_subsystem()
1941 configfs_detach_group(&group->cg_item); in configfs_unregister_subsystem()