@@ -70,12 +70,12 @@ static int zstd_setup_params(struct zcomp_params *params)
if (params->level == ZCOMP_PARAM_NO_LEVEL)
params->level = zstd_default_clevel();
- zp->cprm = zstd_get_params(params->level, PAGE_SIZE);
+ zp->cprm = zstd_get_params(params->level, ZCOMP_MULTI_PAGES_SIZE);
zp->custom_mem.customAlloc = zstd_custom_alloc;
zp->custom_mem.customFree = zstd_custom_free;
- prm = zstd_get_cparams(params->level, PAGE_SIZE,
+ prm = zstd_get_cparams(params->level, ZCOMP_MULTI_PAGES_SIZE,
params->dict_sz);
zp->cdict = zstd_create_cdict_byreference(params->dict,
@@ -137,7 +137,7 @@ static int zstd_create(struct zcomp_params *params, struct zcomp_ctx *ctx)
ctx->context = zctx;
if (params->dict_sz == 0) {
- prm = zstd_get_params(params->level, PAGE_SIZE);
+ prm = zstd_get_params(params->level, ZCOMP_MULTI_PAGES_SIZE);
sz = zstd_cctx_workspace_bound(&prm.cParams);
zctx->cctx_mem = vzalloc(sz);
if (!zctx->cctx_mem)