erofs: restrict pcluster size limitations
authorGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 12 Sep 2024 07:41:56 +0000 (15:41 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 12 Sep 2024 15:00:09 +0000 (23:00 +0800)
commit7c3ca1838a7831855cbf2e6927a10e0e4723edf6
treeecdcfadd129552f99178ced9ef11a890bdaa63c3
parent79f504a2cd3c0b7d953d0015618a2a41559a2cfd
erofs: restrict pcluster size limitations

Error out if {en,de}encoded size of a pcluster is unsupported:
  Maximum supported encoded size (of a pcluster):  1 MiB
  Maximum supported decoded size (of a pcluster): 12 MiB

Users can still choose to use supported large configurations (e.g.,
for archival purposes), but there may be performance penalties in
low-memory scenarios compared to smaller pclusters.

Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20240912074156.2925394-1-hsiangkao@linux.alibaba.com
fs/erofs/erofs_fs.h
fs/erofs/zmap.c