Lines Matching refs:bid_entry
54 struct hmdfs_bid_entry *bid_entry;
57 bid_entry = kmem_cache_alloc(hmdfs_bid_entry_cachep, GFP_KERNEL);
58 if (!bid_entry) {
59 bid_entry = ERR_PTR(-ENOMEM);
65 kmem_cache_free(hmdfs_bid_entry_cachep, bid_entry);
66 bid_entry = ERR_PTR(-ENOMEM);
70 INIT_HLIST_NODE(&bid_entry->node);
71 bid_entry->str = make_qstr(bid_entry_name);
72 bid_entry->id = id;
74 return bid_entry;
77 static void free_bid_entry(struct hmdfs_bid_entry *bid_entry)
79 if (bid_entry == NULL)
82 kfree(bid_entry->str.name);
83 kmem_cache_free(hmdfs_bid_entry_cachep, bid_entry);
127 struct hmdfs_bid_entry *bid_entry; \
132 bid_entry, hash_node, node, str->hash) { \
133 if (qstr_case_eq(str, &bid_entry->str)) { \
134 id = bid_entry->id; \
146 struct hmdfs_bid_entry *bid_entry; \
153 bid_entry, hash_node, node, str->hash) { \
154 if (qstr_case_eq(str, &bid_entry->str)) { \
155 bid_entry->id = id; \
162 bid_entry = alloc_bid_entry(str->name, id); \
163 if (IS_ERR(bid_entry)) { \
164 err = PTR_ERR(bid_entry); \
168 hash_add_rcu(hmdfs_##_attr_##_hash_table, &bid_entry->node, \
169 bid_entry->str.hash); \
176 struct hmdfs_bid_entry *bid_entry; \
183 bid_entry, hash_node, node, str->hash) { \
184 if (qstr_case_eq(str, &bid_entry->str)) { \
185 hash_del_rcu(&bid_entry->node); \
186 free_bid_entry(bid_entry); \
196 struct hmdfs_bid_entry *bid_entry; \
203 hash_node, bid_entry, node) { \
204 hash_del_rcu(&bid_entry->node); \
205 kfree(bid_entry->str.name); \
206 kmem_cache_free(hmdfs_bid_entry_cachep, bid_entry); \