Lines Matching refs:compressor
96 /* Crypto compressor to use */
105 module_param_cb(compressor, &zswap_compressor_param_ops,
446 * If users dynamically change the zpool type and compressor at runtime, i.e.
598 /* type and compressor must be null-terminated */
599 static struct zswap_pool *zswap_pool_find_get(char *type, char *compressor)
606 if (strcmp(pool->tfm_name, compressor))
712 static struct zswap_pool *zswap_pool_create(char *type, char *compressor)
727 if (!strcmp(compressor, ZSWAP_PARAM_UNSET))
748 strscpy(pool->tfm_name, compressor, sizeof(pool->tfm_name));
760 pr_debug("using %s compressor\n", pool->tfm_name);
791 pr_err("compressor %s not available, using default %s\n",
798 pr_err("default compressor %s not available\n",
898 char *type, char *compressor)
932 } else if (!compressor) {
934 pr_err("compressor %s not available\n", s);
937 compressor = s;
945 pool = zswap_pool_find_get(type, compressor);
955 pool = zswap_pool_create(type, compressor);
981 * failed, maybe both compressor and zpool params were bad.