Lines Matching defs:cache
133 static void *qlink_to_object(struct qlist_node *qlink, struct kmem_cache *cache)
139 return ((void *)free_info) - cache->kasan_info.free_meta_offset;
142 static void qlink_free(struct qlist_node *qlink, struct kmem_cache *cache)
144 void *object = qlink_to_object(qlink, cache);
151 ___cache_free(cache, object, _THIS_IP_);
157 static void qlist_free_all(struct qlist_head *q, struct kmem_cache *cache)
167 cache ? cache : qlink_to_cache(qlink);
176 void quarantine_put(struct kasan_free_meta *info, struct kmem_cache *cache)
185 * some objects belonging to the cache if they are in our local temp
197 qlist_put(q, &info->quarantine_link, cache->size);
233 * will not miss objects belonging to the cache while they are in our
273 struct kmem_cache *cache)
286 if (obj_cache == cache)
297 struct kmem_cache *cache = arg;
309 qlist_move_cache(q, &to_free, cache);
310 qlist_free_all(&to_free, cache);
313 /* Free all quarantined objects belonging to cache. */
314 void quarantine_remove_cache(struct kmem_cache *cache)
326 on_each_cpu(per_cpu_remove_cache, cache, 1);
332 qlist_move_cache(&global_quarantine[i], &to_free, cache);
340 qlist_free_all(&to_free, cache);