Lines Matching refs:bitem
85 struct sharefs_config_bitem *bitem;
88 bitem = kzalloc(sizeof(*bitem), GFP_KERNEL);
89 if (!bitem) {
90 bitem = ERR_PTR(-ENOMEM);
96 kfree(bitem);
97 bitem = ERR_PTR(-ENOMEM);
101 bitem->str = make_qstr(bitem_name);
103 return bitem;
106 static void free_bitem(struct sharefs_config_bitem *bitem)
108 if (bitem == NULL)
111 kfree(bitem->str.name);
112 kfree(bitem);
220 struct sharefs_config_bitem *bitem; \
224 bitem = container_of(item, struct sharefs_config_bitem, item); \
225 id = query_##_attr_##_hash_entry(&bitem->str); \
236 struct sharefs_config_bitem *bitem; \
240 bitem = container_of(item, struct sharefs_config_bitem, item); \
247 err = insert_##_attr_##_hash_entry(&bitem->str, id); \
275 struct sharefs_config_bitem *bitem;
279 bitem = container_of(item, struct sharefs_config_bitem, item);
280 remove_appid_hash_entry(&bitem->str);
281 remove_appid_hash_entry(&bitem->str);
282 free_bitem(bitem);
299 struct sharefs_config_bitem *bitem;
301 bitem = alloc_bitem(name);
302 if (IS_ERR(bitem)) {
307 config_item_init_type_name(&bitem->item, name,
309 item = &bitem->item;