Lines Matching refs:frag

164 void put_fragment(struct configfs_fragment *frag)  in put_fragment()  argument
166 if (frag && atomic_dec_and_test(&frag->frag_count)) in put_fragment()
167 kfree(frag); in put_fragment()
170 struct configfs_fragment *get_fragment(struct configfs_fragment *frag) in get_fragment() argument
172 if (likely(frag)) in get_fragment()
173 atomic_inc(&frag->frag_count); in get_fragment()
174 return frag; in get_fragment()
182 struct configfs_fragment *frag) in configfs_new_dirent() argument
201 sd->s_frag = get_fragment(frag); in configfs_new_dirent()
236 umode_t mode, int type, struct configfs_fragment *frag) in configfs_make_dirent() argument
240 sd = configfs_new_dirent(parent_sd, element, type, frag); in configfs_make_dirent()
275 struct configfs_fragment *frag) in configfs_create_dir() argument
290 frag); in configfs_create_dir()
603 struct configfs_fragment *frag);
652 struct configfs_fragment *frag) in create_default_group() argument
668 &group->cg_item, child, frag); in create_default_group()
683 struct configfs_fragment *frag) in populate_groups() argument
689 ret = create_default_group(group, new_group, frag); in populate_groups()
804 struct configfs_fragment *frag) in configfs_attach_item() argument
808 ret = configfs_create_dir(item, dentry, frag); in configfs_attach_item()
839 struct configfs_fragment *frag) in configfs_attach_group() argument
844 ret = configfs_attach_item(parent_item, item, dentry, frag); in configfs_attach_group()
860 ret = populate_groups(to_config_group(item), frag); in configfs_attach_group()
1256 struct configfs_fragment *frag; in configfs_mkdir() local
1275 frag = new_fragment(); in configfs_mkdir()
1276 if (!frag) { in configfs_mkdir()
1383 ret = configfs_attach_group(parent_item, item, dentry, frag); in configfs_mkdir()
1385 ret = configfs_attach_item(parent_item, item, dentry, frag); in configfs_mkdir()
1422 put_fragment(frag); in configfs_mkdir()
1434 struct configfs_fragment *frag; in configfs_rmdir() local
1492 frag = sd->s_frag; in configfs_rmdir()
1493 if (down_write_killable(&frag->frag_sem)) { in configfs_rmdir()
1500 frag->frag_dead = true; in configfs_rmdir()
1501 up_write(&frag->frag_sem); in configfs_rmdir()
1723 struct configfs_fragment *frag; in configfs_register_group() local
1726 frag = new_fragment(); in configfs_register_group()
1727 if (!frag) in configfs_register_group()
1737 ret = create_default_group(parent_group, group, frag); in configfs_register_group()
1745 put_fragment(frag); in configfs_register_group()
1752 put_fragment(frag); in configfs_register_group()
1769 struct configfs_fragment *frag = sd->s_frag; in configfs_unregister_group() local
1771 down_write(&frag->frag_sem); in configfs_unregister_group()
1772 frag->frag_dead = true; in configfs_unregister_group()
1773 up_write(&frag->frag_sem); in configfs_unregister_group()
1846 struct configfs_fragment *frag; in configfs_register_subsystem() local
1848 frag = new_fragment(); in configfs_register_subsystem()
1849 if (!frag) in configfs_register_subsystem()
1854 put_fragment(frag); in configfs_register_subsystem()
1872 dentry, frag); in configfs_register_subsystem()
1890 put_fragment(frag); in configfs_register_subsystem()
1901 struct configfs_fragment *frag = sd->s_frag; in configfs_unregister_subsystem() local
1908 down_write(&frag->frag_sem); in configfs_unregister_subsystem()
1909 frag->frag_dead = true; in configfs_unregister_subsystem()
1910 up_write(&frag->frag_sem); in configfs_unregister_subsystem()