Home
last modified time | relevance | path

Searched refs:handle_cachep (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/mm/
H A Dzsmalloc.c256 struct kmem_cache *handle_cachep; member
325 pool->handle_cachep = kmem_cache_create("zs_handle", ZS_HANDLE_SIZE, in create_cache()
327 if (!pool->handle_cachep) in create_cache()
333 kmem_cache_destroy(pool->handle_cachep); in create_cache()
334 pool->handle_cachep = NULL; in create_cache()
343 kmem_cache_destroy(pool->handle_cachep); in destroy_cache()
349 return (unsigned long)kmem_cache_alloc(pool->handle_cachep, in cache_alloc_handle()
355 kmem_cache_free(pool->handle_cachep, (void *)handle); in cache_free_handle()
/kernel/linux/linux-6.6/mm/
H A Dzsmalloc.c224 struct kmem_cache *handle_cachep; member
300 pool->handle_cachep = kmem_cache_create("zs_handle", ZS_HANDLE_SIZE, in create_cache()
302 if (!pool->handle_cachep) in create_cache()
308 kmem_cache_destroy(pool->handle_cachep); in create_cache()
309 pool->handle_cachep = NULL; in create_cache()
318 kmem_cache_destroy(pool->handle_cachep); in destroy_cache()
324 return (unsigned long)kmem_cache_alloc(pool->handle_cachep, in cache_alloc_handle()
330 kmem_cache_free(pool->handle_cachep, (void *)handle); in cache_free_handle()

Completed in 7 milliseconds