[RFC PATCH v2 08/22] isofs: Use PAGE_SIZE_MAX for zisofs_sink_page
From: Eric Curtin
Date: Tue Dec 01 2026 - 22:16:36 EST
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>
---
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