erofs: adjust per-CPU buffers according to max_pclusterblks
authorGao Xiang <hsiangkao@redhat.com>
Wed, 7 Apr 2021 04:39:23 +0000 (12:39 +0800)
committerGao Xiang <hsiangkao@redhat.com>
Fri, 9 Apr 2021 19:20:17 +0000 (03:20 +0800)
commit4fea63f7d76e425965033938bab6488e48579e3f
tree5b356ccc21e9cd2fe4518eca152397e0c07aeef9
parent5404c33010cb8ee063c05376d4a2eba129872281
erofs: adjust per-CPU buffers according to max_pclusterblks

Adjust per-CPU buffers on demand since big pcluster definition is
available. Also, bail out unsupported pcluster size according to
Z_EROFS_PCLUSTER_MAX_SIZE.

Link: https://lore.kernel.org/r/20210407043927.10623-7-xiang@kernel.org
Acked-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <hsiangkao@redhat.com>
fs/erofs/decompressor.c
fs/erofs/internal.h