summaryrefslogtreecommitdiff
path: root/fs/erofs/internal.h
diff options
context:
space:
mode:
authorGao Xiang <hsiangkao@redhat.com>2021-04-07 07:39:23 +0300
committerGao Xiang <hsiangkao@redhat.com>2021-04-09 22:20:17 +0300
commit4fea63f7d76e425965033938bab6488e48579e3f (patch)
tree5b356ccc21e9cd2fe4518eca152397e0c07aeef9 /fs/erofs/internal.h
parent5404c33010cb8ee063c05376d4a2eba129872281 (diff)
downloadlinux-4fea63f7d76e425965033938bab6488e48579e3f.tar.xz
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>
Diffstat (limited to 'fs/erofs/internal.h')
-rw-r--r--fs/erofs/internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/erofs/internal.h b/fs/erofs/internal.h
index c130e3848322..5c2388daee6e 100644
--- a/fs/erofs/internal.h
+++ b/fs/erofs/internal.h
@@ -63,6 +63,8 @@ struct erofs_fs_context {
struct erofs_sb_lz4_info {
/* # of pages needed for EROFS lz4 rolling decompression */
u16 max_distance_pages;
+ /* maximum possible blocks for pclusters in the filesystem */
+ u16 max_pclusterblks;
};
struct erofs_sb_info {