Symbol: zs_pool
drivers/block/zram/zram_drv.h
110
struct zs_pool *mem_pool;
include/linux/zsmalloc.h
24
struct zs_pool;
include/linux/zsmalloc.h
27
struct zs_pool *zs_create_pool(const char *name);
include/linux/zsmalloc.h
28
void zs_destroy_pool(struct zs_pool *pool);
include/linux/zsmalloc.h
30
unsigned long zs_malloc(struct zs_pool *pool, size_t size, gfp_t flags,
include/linux/zsmalloc.h
32
void zs_free(struct zs_pool *pool, unsigned long obj);
include/linux/zsmalloc.h
34
size_t zs_huge_class_size(struct zs_pool *pool);
include/linux/zsmalloc.h
36
unsigned long zs_get_total_pages(struct zs_pool *pool);
include/linux/zsmalloc.h
37
unsigned long zs_compact(struct zs_pool *pool);
include/linux/zsmalloc.h
39
unsigned int zs_lookup_class_index(struct zs_pool *pool, unsigned int size);
include/linux/zsmalloc.h
41
void zs_pool_stats(struct zs_pool *pool, struct zs_pool_stats *stats);
include/linux/zsmalloc.h
43
void *zs_obj_read_begin(struct zs_pool *pool, unsigned long handle,
include/linux/zsmalloc.h
45
void zs_obj_read_end(struct zs_pool *pool, unsigned long handle,
include/linux/zsmalloc.h
47
void zs_obj_read_sg_begin(struct zs_pool *pool, unsigned long handle,
include/linux/zsmalloc.h
49
void zs_obj_read_sg_end(struct zs_pool *pool, unsigned long handle);
include/linux/zsmalloc.h
50
void zs_obj_write(struct zs_pool *pool, unsigned long handle,
mm/zsmalloc.c
1020
unsigned int zs_lookup_class_index(struct zs_pool *pool, unsigned int size)
mm/zsmalloc.c
1030
unsigned long zs_get_total_pages(struct zs_pool *pool)
mm/zsmalloc.c
1036
void *zs_obj_read_begin(struct zs_pool *pool, unsigned long handle,
mm/zsmalloc.c
1086
void zs_obj_read_end(struct zs_pool *pool, unsigned long handle,
mm/zsmalloc.c
1113
void zs_obj_read_sg_begin(struct zs_pool *pool, unsigned long handle,
mm/zsmalloc.c
1160
void zs_obj_read_sg_end(struct zs_pool *pool, unsigned long handle)
mm/zsmalloc.c
1175
void zs_obj_write(struct zs_pool *pool, unsigned long handle,
mm/zsmalloc.c
1237
size_t zs_huge_class_size(struct zs_pool *pool)
mm/zsmalloc.c
1243
static unsigned long obj_malloc(struct zs_pool *pool,
mm/zsmalloc.c
1296
unsigned long zs_malloc(struct zs_pool *pool, size_t size, gfp_t gfp,
mm/zsmalloc.c
1383
void zs_free(struct zs_pool *pool, unsigned long handle)
mm/zsmalloc.c
1518
static void migrate_zspage(struct zs_pool *pool, struct zspage *src_zspage,
mm/zsmalloc.c
1688
struct zs_pool *pool;
mm/zsmalloc.c
1811
struct zs_pool *pool = container_of(work, struct zs_pool,
mm/zsmalloc.c
1837
static void kick_deferred_free(struct zs_pool *pool)
mm/zsmalloc.c
1842
static void zs_flush_migration(struct zs_pool *pool)
mm/zsmalloc.c
1847
static void init_deferred_free(struct zs_pool *pool)
mm/zsmalloc.c
1852
static void SetZsPageMovable(struct zs_pool *pool, struct zspage *zspage)
mm/zsmalloc.c
1863
static inline void zs_flush_migration(struct zs_pool *pool) { }
mm/zsmalloc.c
1886
static unsigned long __zs_compact(struct zs_pool *pool,
mm/zsmalloc.c
1950
unsigned long zs_compact(struct zs_pool *pool)
mm/zsmalloc.c
1978
void zs_pool_stats(struct zs_pool *pool, struct zs_pool_stats *stats)
mm/zsmalloc.c
1988
struct zs_pool *pool = shrinker->private_data;
mm/zsmalloc.c
2006
struct zs_pool *pool = shrinker->private_data;
mm/zsmalloc.c
2019
static void zs_unregister_shrinker(struct zs_pool *pool)
mm/zsmalloc.c
2024
static int zs_register_shrinker(struct zs_pool *pool)
mm/zsmalloc.c
2071
struct zs_pool *zs_create_pool(const char *name)
mm/zsmalloc.c
2074
struct zs_pool *pool;
mm/zsmalloc.c
2182
void zs_destroy_pool(struct zs_pool *pool)
mm/zsmalloc.c
272
struct zs_pool *pool;
mm/zsmalloc.c
366
static void kick_deferred_free(struct zs_pool *pool);
mm/zsmalloc.c
367
static void init_deferred_free(struct zs_pool *pool);
mm/zsmalloc.c
368
static void SetZsPageMovable(struct zs_pool *pool, struct zspage *zspage);
mm/zsmalloc.c
370
static void kick_deferred_free(struct zs_pool *pool) {}
mm/zsmalloc.c
371
static void init_deferred_free(struct zs_pool *pool) {}
mm/zsmalloc.c
372
static void SetZsPageMovable(struct zs_pool *pool, struct zspage *zspage) {}
mm/zsmalloc.c
457
static struct size_class *zspage_class(struct zs_pool *pool,
mm/zsmalloc.c
520
struct zs_pool *pool = s->private;
mm/zsmalloc.c
581
static void zs_pool_stat_create(struct zs_pool *pool, const char *name)
mm/zsmalloc.c
594
static void zs_pool_stat_destroy(struct zs_pool *pool)
mm/zsmalloc.c
608
static inline void zs_pool_stat_create(struct zs_pool *pool, const char *name)
mm/zsmalloc.c
612
static inline void zs_pool_stat_destroy(struct zs_pool *pool)
mm/zsmalloc.c
803
static void __free_zspage(struct zs_pool *pool, struct size_class *class,
mm/zsmalloc.c
830
static void free_zspage(struct zs_pool *pool, struct size_class *class,
mm/zsmalloc.c
931
static struct zspage *alloc_zspage(struct zs_pool *pool,
mm/zswap.c
1470
zs_free(pool->zs_pool, entry->handle);
mm/zswap.c
154
struct zs_pool *zs_pool;
mm/zswap.c
288
pool->zs_pool = zs_create_pool(name);
mm/zswap.c
289
if (!pool->zs_pool)
mm/zswap.c
338
if (pool->zs_pool)
mm/zswap.c
339
zs_destroy_pool(pool->zs_pool);
mm/zswap.c
376
zs_destroy_pool(pool->zs_pool);
mm/zswap.c
503
total += zs_get_total_pages(pool->zs_pool);
mm/zswap.c
768
zs_free(entry->pool->zs_pool, entry->handle);
mm/zswap.c
900
handle = zs_malloc(pool->zs_pool, dlen, gfp, page_to_nid(page));
mm/zswap.c
906
zs_obj_write(pool->zs_pool, handle, dst, dlen);
mm/zswap.c
934
zs_obj_read_sg_begin(pool->zs_pool, entry->handle, input, entry->length);
mm/zswap.c
957
zs_obj_read_sg_end(pool->zs_pool, entry->handle);