Re: [RFC PATCH v2 08/22] isofs: Use PAGE_SIZE_MAX for zisofs_sink_page

From: Jan Kara

Date: Wed Dec 02 2026 - 09:16:48 EST


On Wed 02-12-26 03:15:11, Eric Curtin wrote:
> From: Eric Curtin <eric.curtin@xxxxxxxxxx>
>
> With arm64 boot-time page size selection PAGE_SIZE is not a compile-time
> constant, so it cannot size the static zisofs_sink_page[] array.
>
> Size the array with PAGE_SIZE_MAX so that it can absorb a full page for
> any supported page size.
>
> No functional change for compile-time page sizes.
>
> Signed-off-by: Eric Curtin <eric.curtin@xxxxxxxxxx>

Looks ok. Feel free to add:

Acked-by: Jan Kara <jack@xxxxxxx>

Honza

> ---
> fs/isofs/compress.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/isofs/compress.c b/fs/isofs/compress.c
> index 2d23abaeb874..66cc6e36526c 100644
> --- a/fs/isofs/compress.c
> +++ b/fs/isofs/compress.c
> @@ -23,7 +23,7 @@
> #include "zisofs.h"
>
> /* This should probably be global. */
> -static char zisofs_sink_page[PAGE_SIZE];
> +static char zisofs_sink_page[PAGE_SIZE_MAX];
>
> /*
> * This contains the zlib memory allocation and the mutex for the
--
Jan Kara <jack@xxxxxxxx>
SUSE Labs, CR