Lines Matching refs:cache
210 static int drain_freelist(struct kmem_cache *cache,
375 static inline void *index_to_obj(struct kmem_cache *cache, struct page *page, in index_to_obj() argument
378 return page->s_mem + cache->size * idx; in index_to_obj()
2191 static int drain_freelist(struct kmem_cache *cache, in drain_freelist() argument
2216 n->free_objects -= cache->num; in drain_freelist()
2218 slab_destroy(cache, page); in drain_freelist()
2553 static void slab_map_pages(struct kmem_cache *cache, struct page *page, in slab_map_pages() argument
2556 page->slab_cache = cache; in slab_map_pages()
2684 static inline void verify_redzone_free(struct kmem_cache *cache, void *obj) in verify_redzone_free() argument
2688 redzone1 = *dbg_redzone1(cache, obj); in verify_redzone_free()
2689 redzone2 = *dbg_redzone2(cache, obj); in verify_redzone_free()
2698 slab_error(cache, "double free detected"); in verify_redzone_free()
2700 slab_error(cache, "memory outside object was overwritten"); in verify_redzone_free()
3095 static void *fallback_alloc(struct kmem_cache *cache, gfp_t flags) in fallback_alloc() argument
3122 get_node(cache, nid) && in fallback_alloc()
3123 get_node(cache, nid)->free_objects) { in fallback_alloc()
3124 obj = ____cache_alloc_node(cache, in fallback_alloc()
3138 page = cache_grow_begin(cache, flags, numa_mem_id()); in fallback_alloc()
3139 cache_grow_end(cache, page); in fallback_alloc()
3142 obj = ____cache_alloc_node(cache, in fallback_alloc()
3264 __do_cache_alloc(struct kmem_cache *cache, gfp_t flags) in __do_cache_alloc() argument
3269 objp = alternate_node_alloc(cache, flags); in __do_cache_alloc()
3273 objp = ____cache_alloc(cache, flags); in __do_cache_alloc()
3280 objp = ____cache_alloc_node(cache, flags, numa_mem_id()); in __do_cache_alloc()