[RFC PATCH v2 09/22] ext4: Use PAGE_SIZE_MAX for the inline KUnit test data buffer
From: Eric Curtin
Date: Tue Dec 01 2026 - 22:16:44 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 data_block_buf[] member of struct
inline_test_ctx.
Size data_block_buf[] with PAGE_SIZE_MAX so that the buffer is large
enough for every supported page size.
No functional change for compile-time page sizes.
Signed-off-by: Eric Curtin <eric.curtin@xxxxxxxxxx>
---
fs/ext4/inline-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ext4/inline-test.c b/fs/ext4/inline-test.c
index b3d7c51ad216..5d9302e2a572 100644
--- a/fs/ext4/inline-test.c
+++ b/fs/ext4/inline-test.c
@@ -52,7 +52,7 @@ struct inline_test_ctx {
struct buffer_head iloc_bh;
u8 raw_inode_buf[TEST_BLOCK_SIZE];
struct buffer_head data_bh;
- u8 data_block_buf[PAGE_SIZE];
+ u8 data_block_buf[PAGE_SIZE_MAX];
int get_inode_loc_err;
int map_blocks_ret;
ext4_fsblk_t map_pblk;