Searched refs:zs_pool (Results 1 – 4 of 4) sorted by relevance
| /linux/include/linux/ |
| H A D | zsmalloc.h | 24 struct zs_pool; 27 struct zs_pool *zs_create_pool(const char *name); 28 void zs_destroy_pool(struct zs_pool *pool); 30 unsigned long zs_malloc(struct zs_pool *pool, size_t size, gfp_t flags, 32 void zs_free(struct zs_pool *pool, unsigned long obj); 34 size_t zs_huge_class_size(struct zs_pool *pool); 36 unsigned long zs_get_total_pages(struct zs_pool *pool); 37 unsigned long zs_compact(struct zs_pool *pool); 39 unsigned int zs_lookup_class_index(struct zs_pool *pool, unsigned int size); 41 void zs_pool_stats(struct zs_pool *pool, struct zs_pool_stats *stats); [all …]
|
| /linux/mm/ |
| H A D | zsmalloc.c | 199 struct zs_pool { struct 272 struct zs_pool *pool; 366 static void kick_deferred_free(struct zs_pool *pool); 367 static void init_deferred_free(struct zs_pool *pool); 368 static void SetZsPageMovable(struct zs_pool *pool, struct zspage *zspage); 370 static void kick_deferred_free(struct zs_pool *pool) {} in kick_deferred_free() 371 static void init_deferred_free(struct zs_pool *pool) {} in init_deferred_free() 372 static void SetZsPageMovable(struct zs_pool *pool, struct zspage *zspage) {} in SetZsPageMovable() 457 static struct size_class *zspage_class(struct zs_pool *pool, in zspage_class() 520 struct zs_pool *pool = s->private; in zs_stats_size_show() [all …]
|
| H A D | zswap.c | 154 struct zs_pool *zs_pool; member 260 pool->zs_pool = zs_create_pool(name); in zswap_pool_create() 261 if (!pool->zs_pool) in zswap_pool_create() 298 if (pool->zs_pool) in zswap_pool_create() 299 zs_destroy_pool(pool->zs_pool); in zswap_pool_create() 330 zs_destroy_pool(pool->zs_pool); in zswap_pool_destroy() 457 total += zs_get_total_pages(pool->zs_pool); in zswap_total_pages() 720 zs_free(entry->pool->zs_pool, entry->handle); in zswap_entry_free() 908 handle = zs_malloc(pool->zs_pool, dlen, gfp, page_to_nid(page)); in zswap_compress() 914 zs_obj_write(pool->zs_pool, handle, dst, dlen); in zswap_compress() [all …]
|
| /linux/drivers/block/zram/ |
| H A D | zram_drv.h | 110 struct zs_pool *mem_pool;
|