Lines Matching refs: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);
166 struct zpool *zpools[ZSWAP_NR_ZPOOLS];
196 * handle - zpool allocation handle that stores the compressed page data
231 /* pool counter to provide unique names to zpool */
373 static struct zpool *zswap_find_zpool(struct zswap_entry *entry)
384 * Carries out the common pattern of freeing and entry's zpool allocation,
446 * If users dynamically change the zpool type and compressor at runtime, i.e.
447 * zswap is running, zswap can have more than one zpool on one cpu, but they
742 pr_err("%s zpool not available\n", type);
746 pr_debug("using %s zpool\n", zpool_get_type(pool->zpools[0]));
807 pr_err("zpool %s not available, using default %s\n",
814 pr_err("default zpool %s not available\n",
928 pr_err("zpool %s not available\n", s);
981 * failed, maybe both compressor and zpool params were bad.
1062 struct zpool *pool = zswap_find_zpool(entry);
1205 struct zpool *zpool;
1321 zpool = zswap_find_zpool(entry);
1323 if (zpool_malloc_support_movable(zpool))
1325 ret = zpool_malloc(zpool, dlen, gfp, &handle);
1334 buf = zpool_map_handle(zpool, handle, ZPOOL_MM_WO);
1336 zpool_unmap_handle(zpool, handle);
1407 struct zpool *zpool;
1430 zpool = zswap_find_zpool(entry);
1431 if (!zpool_can_sleep_mapped(zpool)) {
1441 src = zpool_map_handle(zpool, entry->handle, ZPOOL_MM_RO);
1443 if (!zpool_can_sleep_mapped(zpool)) {
1446 zpool_unmap_handle(zpool, entry->handle);
1459 if (zpool_can_sleep_mapped(zpool))
1460 zpool_unmap_handle(zpool, entry->handle);