erofs: avoid on-stack pagepool directly passed by arguments
authorGao Xiang <hsiangkao@linux.alibaba.com>
Fri, 26 May 2023 20:14:55 +0000 (04:14 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Mon, 29 May 2023 15:05:25 +0000 (23:05 +0800)
commit6ab5eed6002edc5a29b683285e90459a7df6ce2b
tree9be901523d40febd9c6295192f3865d9a53c38e8
parent05b63d2beb8b0f752d1f5cdd051c8bdbf532cedd
erofs: avoid on-stack pagepool directly passed by arguments

On-stack pagepool is used so that short-lived temporary pages could be
shared within a single I/O request (e.g. among multiple pclusters).

Moving the remaining frontend-related uses into
z_erofs_decompress_frontend to avoid too many arguments.

Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Yue Hu <huyue2@coolpad.com>
Link: https://lore.kernel.org/r/20230526201459.128169-3-hsiangkao@linux.alibaba.com
fs/erofs/zdata.c