Home
last modified time | relevance | path

Searched refs:zpool (Results 1 – 4 of 4) sorted by relevance

/linux-4.1.27/mm/
Dzpool.c20 struct zpool { struct
86 struct zpool *zpool; in zpool_evict() local
89 list_for_each_entry(zpool, &pools_head, list) { in zpool_evict()
90 if (zpool->pool == pool) { in zpool_evict()
92 if (!zpool->ops || !zpool->ops->evict) in zpool_evict()
94 return zpool->ops->evict(zpool, handle); in zpool_evict()
144 struct zpool *zpool_create_pool(char *type, char *name, gfp_t gfp, in zpool_create_pool()
148 struct zpool *zpool; in zpool_create_pool() local
164 zpool = kmalloc(sizeof(*zpool), gfp); in zpool_create_pool()
165 if (!zpool) { in zpool_create_pool()
[all …]
Dzswap.c95 module_param_named(zpool, zswap_zpool_type, charp, 0444);
98 static struct zpool *zswap_pool;
532 static int zswap_writeback_entry(struct zpool *pool, unsigned long handle) in zswap_writeback_entry()
DMakefile73 obj-$(CONFIG_ZPOOL) += zpool.o
/linux-4.1.27/include/linux/
Dzpool.h14 struct zpool;
17 int (*evict)(struct zpool *pool, unsigned long handle);
39 struct zpool *zpool_create_pool(char *type, char *name,
42 char *zpool_get_type(struct zpool *pool);
44 void zpool_destroy_pool(struct zpool *pool);
46 int zpool_malloc(struct zpool *pool, size_t size, gfp_t gfp,
49 void zpool_free(struct zpool *pool, unsigned long handle);
51 int zpool_shrink(struct zpool *pool, unsigned int pages,
54 void *zpool_map_handle(struct zpool *pool, unsigned long handle,
57 void zpool_unmap_handle(struct zpool *pool, unsigned long handle);
[all …]