Lines Matching refs:cg_item
634 struct dentry * dentry = dget(group->cg_item.ci_dentry); in detach_groups()
683 struct dentry *child, *parent = parent_group->cg_item.ci_dentry; in create_default_group()
685 if (!group->cg_item.ci_name) in create_default_group()
686 group->cg_item.ci_name = group->cg_item.ci_namebuf; in create_default_group()
689 child = d_alloc_name(parent, group->cg_item.ci_name); in create_default_group()
693 ret = configfs_attach_group(&parent_group->cg_item, in create_default_group()
694 &group->cg_item, child, frag); in create_default_group()
731 config_item_put(&g->cg_item); in configfs_remove_default_groups()
790 unlink_obj(&group->cg_item); in unlink_group()
798 link_obj(&parent_group->cg_item, &group->cg_item); in link_group()
802 else if (configfs_is_root(&parent_group->cg_item)) in link_group()
1129 struct config_item *s_item = &subsys->su_group.cg_item; in configfs_depend_item()
1223 if (configfs_is_root(&parent->cg_item)) { in configfs_depend_item_unlocked()
1229 for (root = parent; !configfs_is_root(&root->cg_item); in configfs_depend_item_unlocked()
1230 root = root->cg_item.ci_group) in configfs_depend_item_unlocked()
1240 inode_lock(d_inode(root->cg_item.ci_dentry)); in configfs_depend_item_unlocked()
1247 root->cg_item.ci_dentry->d_fsdata, in configfs_depend_item_unlocked()
1248 &target_subsys->su_group.cg_item); in configfs_depend_item_unlocked()
1252 subsys_sd = target_subsys->su_group.cg_item.ci_dentry->d_fsdata; in configfs_depend_item_unlocked()
1264 inode_unlock(d_inode(root->cg_item.ci_dentry)); in configfs_depend_item_unlocked()
1324 if (!subsys->su_group.cg_item.ci_type) { in configfs_mkdir()
1328 subsys_owner = subsys->su_group.cg_item.ci_type->ct_owner; in configfs_mkdir()
1349 item = &group->cg_item; in configfs_mkdir()
1478 BUG_ON(!subsys->su_group.cg_item.ci_type); in configfs_rmdir()
1479 subsys_owner = subsys->su_group.cg_item.ci_type->ct_owner; in configfs_rmdir()
1759 parent = parent_group->cg_item.ci_dentry; in configfs_register_group()
1767 configfs_dir_set_ready(group->cg_item.ci_dentry->d_fsdata); in configfs_register_group()
1791 struct dentry *dentry = group->cg_item.ci_dentry; in configfs_unregister_group()
1792 struct dentry *parent = group->cg_item.ci_parent->ci_dentry; in configfs_unregister_group()
1805 configfs_detach_group(&group->cg_item); in configfs_unregister_group()
1883 if (!group->cg_item.ci_name) in configfs_register_subsystem()
1884 group->cg_item.ci_name = group->cg_item.ci_namebuf; in configfs_register_subsystem()
1892 dentry = d_alloc_name(root, group->cg_item.ci_name); in configfs_register_subsystem()
1896 err = configfs_attach_group(sd->s_element, &group->cg_item, in configfs_register_subsystem()
1923 struct dentry *dentry = group->cg_item.ci_dentry; in configfs_unregister_subsystem()
1947 configfs_detach_group(&group->cg_item); in configfs_unregister_subsystem()