Lines Matching refs:head
182 static bool pool_push_batch(struct obj_pool *dst, struct hlist_head *head) in pool_push_batch() argument
190 obj = hlist_entry(head->first, typeof(*obj), node); in pool_push_batch()
193 hlist_splice_init(head, last, &dst->objects); in pool_push_batch()
198 static bool pool_pop_batch(struct hlist_head *head, struct obj_pool *src) in pool_pop_batch() argument
207 hlist_move_list(&src->objects, head); in pool_pop_batch()
209 obj = hlist_entry(head->first, typeof(*obj), node); in pool_pop_batch()
318 static void free_object_list(struct hlist_head *head) in free_object_list() argument
324 hlist_for_each_entry_safe(obj, tmp, head, node) { in free_object_list()
365 static bool kmem_alloc_batch(struct hlist_head *head, struct kmem_cache *cache, gfp_t gfp) in kmem_alloc_batch() argument
373 free_object_list(head); in kmem_alloc_batch()
382 hlist_add_head(&obj->node, head); in kmem_alloc_batch()
401 HLIST_HEAD(head); in fill_pool()
403 if (!kmem_alloc_batch(&head, obj_cache, __GFP_HIGH | __GFP_NOWARN)) in fill_pool()
407 if (!pool_push_batch(&pool_global, &head)) in fill_pool()
408 pool_push_batch(&pool_to_free, &head); in fill_pool()