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
1021
unsigned int zs_lookup_class_index(struct zs_pool *pool, unsigned int size)
mm/zsmalloc.c
1031
unsigned long zs_get_total_pages(struct zs_pool *pool)
mm/zsmalloc.c
1037
void *zs_obj_read_begin(struct zs_pool *pool, unsigned long handle,
mm/zsmalloc.c
1087
void zs_obj_read_end(struct zs_pool *pool, unsigned long handle,
mm/zsmalloc.c
1114
void zs_obj_read_sg_begin(struct zs_pool *pool, unsigned long handle,
mm/zsmalloc.c
1161
void zs_obj_read_sg_end(struct zs_pool *pool, unsigned long handle)
mm/zsmalloc.c
1176
void zs_obj_write(struct zs_pool *pool, unsigned long handle,
mm/zsmalloc.c
1238
size_t zs_huge_class_size(struct zs_pool *pool)
mm/zsmalloc.c
1244
static unsigned long obj_malloc(struct zs_pool *pool,
mm/zsmalloc.c
1297
unsigned long zs_malloc(struct zs_pool *pool, size_t size, gfp_t gfp,
mm/zsmalloc.c
1384
void zs_free(struct zs_pool *pool, unsigned long handle)
mm/zsmalloc.c
1519
static void migrate_zspage(struct zs_pool *pool, struct zspage *src_zspage,
mm/zsmalloc.c
1689
struct zs_pool *pool;
mm/zsmalloc.c
1799
struct zs_pool *pool = container_of(work, struct zs_pool,
mm/zsmalloc.c
1825
static void kick_deferred_free(struct zs_pool *pool)
mm/zsmalloc.c
1830
static void zs_flush_migration(struct zs_pool *pool)
mm/zsmalloc.c
1835
static void init_deferred_free(struct zs_pool *pool)
mm/zsmalloc.c
1840
static void SetZsPageMovable(struct zs_pool *pool, struct zspage *zspage)
mm/zsmalloc.c
1851
static inline void zs_flush_migration(struct zs_pool *pool) { }
mm/zsmalloc.c
1874
static unsigned long __zs_compact(struct zs_pool *pool,
mm/zsmalloc.c
1938
unsigned long zs_compact(struct zs_pool *pool)
mm/zsmalloc.c
1966
void zs_pool_stats(struct zs_pool *pool, struct zs_pool_stats *stats)
mm/zsmalloc.c
1976
struct zs_pool *pool = shrinker->private_data;
mm/zsmalloc.c
1994
struct zs_pool *pool = shrinker->private_data;
mm/zsmalloc.c
2007
static void zs_unregister_shrinker(struct zs_pool *pool)
mm/zsmalloc.c
2012
static int zs_register_shrinker(struct zs_pool *pool)
mm/zsmalloc.c
2059
struct zs_pool *zs_create_pool(const char *name)
mm/zsmalloc.c
2062
struct zs_pool *pool;
mm/zsmalloc.c
2170
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
582
static void zs_pool_stat_create(struct zs_pool *pool, const char *name)
mm/zsmalloc.c
595
static void zs_pool_stat_destroy(struct zs_pool *pool)
mm/zsmalloc.c
609
static inline void zs_pool_stat_create(struct zs_pool *pool, const char *name)
mm/zsmalloc.c
613
static inline void zs_pool_stat_destroy(struct zs_pool *pool)
mm/zsmalloc.c
804
static void __free_zspage(struct zs_pool *pool, struct size_class *class,
mm/zsmalloc.c
831
static void free_zspage(struct zs_pool *pool, struct size_class *class,
mm/zsmalloc.c
932
static struct zspage *alloc_zspage(struct zs_pool *pool,
mm/zswap.c
1482
zs_free(pool->zs_pool, entry->handle);
mm/zswap.c
154
struct zs_pool *zs_pool;
mm/zswap.c
260
pool->zs_pool = zs_create_pool(name);
mm/zswap.c
261
if (!pool->zs_pool)
mm/zswap.c
298
if (pool->zs_pool)
mm/zswap.c
299
zs_destroy_pool(pool->zs_pool);
mm/zswap.c
330
zs_destroy_pool(pool->zs_pool);
mm/zswap.c
457
total += zs_get_total_pages(pool->zs_pool);
mm/zswap.c
720
zs_free(entry->pool->zs_pool, entry->handle);
mm/zswap.c
908
handle = zs_malloc(pool->zs_pool, dlen, gfp, page_to_nid(page));
mm/zswap.c
914
zs_obj_write(pool->zs_pool, handle, dst, dlen);
mm/zswap.c
941
zs_obj_read_sg_begin(pool->zs_pool, entry->handle, input, entry->length);
mm/zswap.c
964
zs_obj_read_sg_end(pool->zs_pool, entry->handle);