• Home
  • Raw
  • Download

Lines Matching refs:cache

209 static int drain_freelist(struct kmem_cache *cache,
374 static inline void *index_to_obj(struct kmem_cache *cache, struct page *page, in index_to_obj() argument
377 return page->s_mem + cache->size * idx; in index_to_obj()
2181 static int drain_freelist(struct kmem_cache *cache, in drain_freelist() argument
2206 n->free_objects -= cache->num; in drain_freelist()
2208 slab_destroy(cache, page); in drain_freelist()
2556 static void slab_map_pages(struct kmem_cache *cache, struct page *page, in slab_map_pages() argument
2559 page->slab_cache = cache; in slab_map_pages()
2691 static inline void verify_redzone_free(struct kmem_cache *cache, void *obj) in verify_redzone_free() argument
2695 redzone1 = *dbg_redzone1(cache, obj); in verify_redzone_free()
2696 redzone2 = *dbg_redzone2(cache, obj); in verify_redzone_free()
2705 slab_error(cache, "double free detected"); in verify_redzone_free()
2707 slab_error(cache, "memory outside object was overwritten"); in verify_redzone_free()
3103 static void *fallback_alloc(struct kmem_cache *cache, gfp_t flags) in fallback_alloc() argument
3130 get_node(cache, nid) && in fallback_alloc()
3131 get_node(cache, nid)->free_objects) { in fallback_alloc()
3132 obj = ____cache_alloc_node(cache, in fallback_alloc()
3146 page = cache_grow_begin(cache, flags, numa_mem_id()); in fallback_alloc()
3147 cache_grow_end(cache, page); in fallback_alloc()
3150 obj = ____cache_alloc_node(cache, in fallback_alloc()
3267 __do_cache_alloc(struct kmem_cache *cache, gfp_t flags) in __do_cache_alloc() argument
3272 objp = alternate_node_alloc(cache, flags); in __do_cache_alloc()
3276 objp = ____cache_alloc(cache, flags); in __do_cache_alloc()
3283 objp = ____cache_alloc_node(cache, flags, numa_mem_id()); in __do_cache_alloc()