Lines Matching defs:zpool
28 #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;
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);
276 if (!pool->zpool) {
277 pr_err("%s zpool not available\n", type);
280 pr_debug("using %s zpool\n", zpool_get_type(pool->zpool));
316 if (pool->zpool)
317 zpool_destroy_pool(pool->zpool);
345 pr_err("zpool %s not available, using default %s\n",
352 pr_err("default zpool %s not available\n",
371 zpool_destroy_pool(pool->zpool);
472 if (strcmp(zpool_get_type(pool->zpool), type))
500 total += zpool_get_total_pages(pool->zpool);
565 pr_err("zpool %s not available\n", s);
629 * failed, maybe both compressor and zpool params were bad.
802 * Carries out the common pattern of freeing and entry's zpool allocation,
808 zpool_free(entry->pool->zpool, entry->handle);
948 struct zpool *zpool;
982 zpool = pool->zpool;
984 alloc_ret = zpool_malloc(zpool, dlen, gfp, &handle, page_to_nid(page));
988 zpool_obj_write(zpool, handle, dst, dlen);
1006 struct zpool *zpool = entry->pool->zpool;
1013 obj = zpool_obj_read_begin(zpool, entry->handle, acomp_ctx->buffer);
1035 zpool_obj_read_end(zpool, entry->handle, obj);
1550 zpool_free(pool->zpool, entry->handle);
1870 zpool_get_type(pool->zpool));