Home
last modified time | relevance | path

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

/Linux-v4.19/mm/
Dzpool.c20 struct zpool { struct
154 struct zpool *zpool_create_pool(const char *type, const char *name, gfp_t gfp, in zpool_create_pool()
158 struct zpool *zpool; in zpool_create_pool() local
174 zpool = kmalloc(sizeof(*zpool), gfp); in zpool_create_pool()
175 if (!zpool) { in zpool_create_pool()
181 zpool->driver = driver; in zpool_create_pool()
182 zpool->pool = driver->create(name, gfp, ops, zpool); in zpool_create_pool()
183 zpool->ops = ops; in zpool_create_pool()
184 zpool->evictable = driver->shrink && ops && ops->evict; in zpool_create_pool()
186 if (!zpool->pool) { in zpool_create_pool()
[all …]
Dzswap.c115 module_param_cb(zpool, &zswap_zpool_param_ops, &zswap_zpool_type, 0644);
131 struct zpool *zpool; member
210 zpool_get_type((p)->zpool))
212 static int zswap_writeback_entry(struct zpool *pool, unsigned long handle);
234 total += zpool_get_total_size(pool->zpool); in zswap_update_total_size()
337 zpool_free(entry->pool->zpool, entry->handle); in zswap_free_entry()
502 if (strcmp(zpool_get_type(pool->zpool), type)) in zswap_pool_find_get()
538 pool->zpool = zpool_create_pool(type, name, gfp, &zswap_zpool_ops); in zswap_pool_create()
539 if (!pool->zpool) { in zswap_pool_create()
543 pr_debug("using %s zpool\n", zpool_get_type(pool->zpool)); in zswap_pool_create()
[all …]
Dzbud.c101 struct zpool *zpool; member
130 if (pool->zpool && pool->zpool_ops && pool->zpool_ops->evict) in zbud_zpool_evict()
131 return pool->zpool_ops->evict(pool->zpool, handle); in zbud_zpool_evict()
142 struct zpool *zpool) in zbud_zpool_create() argument
148 pool->zpool = zpool; in zbud_zpool_create()
Dz3fold.c133 struct zpool *zpool; member
1022 if (pool->zpool && pool->zpool_ops && pool->zpool_ops->evict) in z3fold_zpool_evict()
1023 return pool->zpool_ops->evict(pool->zpool, handle); in z3fold_zpool_evict()
1034 struct zpool *zpool) in z3fold_zpool_create() argument
1041 pool->zpool = zpool; in z3fold_zpool_create()
DMakefile91 obj-$(CONFIG_ZPOOL) += zpool.o
Dzsmalloc.c383 struct zpool *zpool) in zs_zpool_create() argument
/Linux-v4.19/include/linux/
Dzpool.h15 struct zpool;
18 int (*evict)(struct zpool *pool, unsigned long handle);
42 struct zpool *zpool_create_pool(const char *type, const char *name,
45 const char *zpool_get_type(struct zpool *pool);
47 void zpool_destroy_pool(struct zpool *pool);
49 int zpool_malloc(struct zpool *pool, size_t size, gfp_t gfp,
52 void zpool_free(struct zpool *pool, unsigned long handle);
54 int zpool_shrink(struct zpool *pool, unsigned int pages,
57 void *zpool_map_handle(struct zpool *pool, unsigned long handle,
60 void zpool_unmap_handle(struct zpool *pool, unsigned long handle);
[all …]
/Linux-v4.19/Documentation/vm/
Dzswap.rst62 Zswap makes use of zpool for the managing the compressed memory pool. Each
63 allocation in zpool is not directly accessible by address. Rather, a handle is
66 pages are freed. The pool is not preallocated. By default, a zpool
68 setting the ``zpool`` attribute, e.g. ``zswap.zpool=zbud``. It can
69 also be changed at runtime using the sysfs ``zpool`` attribute, e.g.::
71 echo zbud > /sys/module/zswap/parameters/zpool
73 The zbud type zpool allocates exactly 1 page to store 2 compressed pages, which
75 zbud pages). The zsmalloc type zpool has a more complex compressed page
81 of the swap entry, a combination of the swap type and swap offset, to the zpool
107 When the zpool and/or compressor parameter is changed at runtime, any existing
[all …]
Dz3fold.rst17 via the zpool API.
/Linux-v4.19/
DMAINTAINERS16212 F: mm/zpool.c
16213 F: include/linux/zpool.h