Home
last modified time | relevance | path

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

/linux/mm/
H A Dzpool.c21 struct zpool { struct
147 struct zpool *zpool_create_pool(const char *type, const char *name, gfp_t gfp) in zpool_create_pool()
150 struct zpool *zpool; in zpool_create_pool() local
166 zpool = kmalloc(sizeof(*zpool), gfp); in zpool_create_pool()
167 if (!zpool) { in zpool_create_pool()
173 zpool->driver = driver; in zpool_create_pool()
174 zpool->pool = driver->create(name, gfp); in zpool_create_pool()
176 if (!zpool->pool) { in zpool_create_pool()
179 kfree(zpool); in zpool_create_pool()
185 return zpool; in zpool_create_pool()
[all …]
H A Dzswap.c28 #include <linux/zpool.h>
108 /* Compressed storage zpool to use */
116 module_param_cb(zpool, &zswap_zpool_param_ops, &zswap_zpool_type, 0644);
162 struct zpool *zpool; member
194 * handle - zpool allocation handle that stores the compressed page data
215 /* pool counter to provide unique names to zpool */
244 zpool_get_type((p)->zpool))
275 pool->zpool = zpool_create_pool(type, name, gfp); in zswap_pool_create()
276 if (!pool->zpool) { in zswap_pool_create()
948 struct zpool *zpool; zswap_compress() local
1006 struct zpool *zpool = entry->pool->zpool; zswap_decompress() local
[all...]
H A DMakefile118 obj-$(CONFIG_ZPOOL) += zpool.o
H A DKconfig140 command line 'zswap.zpool=' option.
/linux/include/linux/
H A Dzpool.h14 struct zpool;
18 struct zpool *zpool_create_pool(const char *type, const char *name, gfp_t gfp);
20 const char *zpool_get_type(struct zpool *pool);
22 void zpool_destroy_pool(struct zpool *pool);
24 int zpool_malloc(struct zpool *pool, size_t size, gfp_t gfp,
27 void zpool_free(struct zpool *pool, unsigned long handle);
29 void *zpool_obj_read_begin(struct zpool *zpool, unsigned long handle,
32 void zpool_obj_read_end(struct zpool *zpool, unsigned long handle,
35 void zpool_obj_write(struct zpool *zpool, unsigned long handle,
38 u64 zpool_get_total_pages(struct zpool *pool);
[all …]
/linux/Documentation/core-api/
H A Dmm-api.rst121 .. kernel-doc:: mm/zpool.c
/linux/
H A DCREDITS3835 D: Creation and maintenance of the zpool API
H A DMAINTAINERS27891 F: include/linux/zpool.h
27893 F: mm/zpool.c