Home
last modified time | relevance | path

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

/linux-4.4.14/mm/
Dzpool.c20 struct zpool { struct
153 struct zpool *zpool_create_pool(const char *type, const char *name, gfp_t gfp, in zpool_create_pool()
157 struct zpool *zpool; in zpool_create_pool() local
173 zpool = kmalloc(sizeof(*zpool), gfp); in zpool_create_pool()
174 if (!zpool) { in zpool_create_pool()
180 zpool->driver = driver; in zpool_create_pool()
181 zpool->pool = driver->create(name, gfp, ops, zpool); in zpool_create_pool()
182 zpool->ops = ops; in zpool_create_pool()
184 if (!zpool->pool) { in zpool_create_pool()
187 kfree(zpool); in zpool_create_pool()
[all …]
Dzswap.c105 module_param_cb(zpool, &zswap_zpool_param_ops, &zswap_zpool_type, 0644);
116 struct zpool *zpool; member
185 zpool_get_type((p)->zpool))
187 static int zswap_writeback_entry(struct zpool *pool, unsigned long handle);
209 total += zpool_get_total_size(pool->zpool); in zswap_update_total_size()
309 zpool_free(entry->pool->zpool, entry->handle); in zswap_free_entry()
556 if (strcmp(zpool_get_type(pool->zpool), type)) in zswap_pool_find_get()
582 pool->zpool = zpool_create_pool(type, name, gfp, &zswap_zpool_ops); in zswap_pool_create()
583 if (!pool->zpool) { in zswap_pool_create()
587 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()
DMakefile73 obj-$(CONFIG_ZPOOL) += zpool.o
Dzsmalloc.c326 struct zpool *zpool) in zs_zpool_create() argument
/linux-4.4.14/include/linux/
Dzpool.h14 struct zpool;
17 int (*evict)(struct zpool *pool, unsigned long handle);
41 struct zpool *zpool_create_pool(const char *type, const char *name,
44 const char *zpool_get_type(struct zpool *pool);
46 void zpool_destroy_pool(struct zpool *pool);
48 int zpool_malloc(struct zpool *pool, size_t size, gfp_t gfp,
51 void zpool_free(struct zpool *pool, unsigned long handle);
53 int zpool_shrink(struct zpool *pool, unsigned int pages,
56 void *zpool_map_handle(struct zpool *pool, unsigned long handle,
59 void zpool_unmap_handle(struct zpool *pool, unsigned long handle);
[all …]
/linux-4.4.14/Documentation/vm/
Dzswap.txt52 Zswap makes use of zpool for the managing the compressed memory pool. Each
53 allocation in zpool is not directly accessible by address. Rather, a handle is
56 pages are freed. The pool is not preallocated. By default, a zpool of type
57 zbud is created, but it can be selected at boot time by setting the "zpool"
58 attribute, e.g. zswap.zpool=zbud. It can also be changed at runtime using the
59 sysfs "zpool" attribute, e.g.
61 echo zbud > /sys/module/zswap/parameters/zpool
63 The zbud type zpool allocates exactly 1 page to store 2 compressed pages, which
65 zbud pages). The zsmalloc type zpool has a more complex compressed page
71 of the swap entry, a combination of the swap type and swap offset, to the zpool
[all …]
/linux-4.4.14/
DMAINTAINERS11930 F: mm/zpool.c
11931 F: include/linux/zpool.h