Linux EXT4 FS development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Eric Curtin" <ericcurtin17@gmail.com>
Cc: linux-ext4@vger.kernel.org, tytso@mit.edu
Subject: Re: [RFC PATCH v2 09/22] ext4: Use PAGE_SIZE_MAX for the inline KUnit test data buffer
Date: Thu, 03 Dec 2026 03:16:45 +0000	[thread overview]
Message-ID: <sashiko-outbox-247056@kernel.org> (raw)
In-Reply-To: <20261202031533.1665444-10-ericcurtin17@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] ext4: undeclared PAGE_SIZE_MAX used for data_block_buf in
  inline_test_ctx
--

commit 3889ead9026685ea2b83434fbf57427b453dee72
Author: Eric Curtin <eric.curtin@docker.com>

ext4: Use PAGE_SIZE_MAX for the inline KUnit test data buffer

This commit changes the size of data_block_buf in struct inline_test_ctx
from PAGE_SIZE to PAGE_SIZE_MAX to support boot-time page size selection.

> diff --git a/fs/ext4/inline-test.c b/fs/ext4/inline-test.c
> index b3d7c51ad216b..5d9302e2a5725 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];

[Severity: Medium]
Should data_block_buf be sized with TEST_BLOCK_SIZE instead of
PAGE_SIZE_MAX?

PAGE_SIZE_MAX is not defined in the kernel tree, so compiling
fs/ext4/inline-test.c with CONFIG_EXT4_KUNIT_TESTS enabled fails with an
undeclared identifier error.  In addition, data_block_buf backs the mock
filesystem block buffer data_bh of size TEST_BLOCK_SIZE, just like
raw_inode_buf above it:

fs/ext4/inline-test.c:inline_test_init() {
	...
	ctx->data_bh.b_data = (char *)ctx->data_block_buf;
	ctx->data_bh.b_size = TEST_BLOCK_SIZE;
	...
}

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261202031533.1665444-1-ericcurtin17@gmail.com?part=9

  reply	other threads:[~2026-12-03  3:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02  3:15 [RFC PATCH v2 00/22] fs: Prepare for boot-time page size selection on arm64 Eric Curtin
2026-12-02  3:15 ` [RFC PATCH v2 09/22] ext4: Use PAGE_SIZE_MAX for the inline KUnit test data buffer Eric Curtin
2026-12-03  3:16   ` sashiko-bot [this message]
2026-12-02  3:15 ` [RFC PATCH v2 10/22] ext2: Test PAGE_SIZE at run time in the rec_len conversions Eric Curtin
2026-12-02 14:17   ` Jan Kara
2026-12-03  3:16 ` [RFC PATCH v2 00/22] fs: Prepare for boot-time page size selection on arm64 sashiko-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-247056@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=ericcurtin17@gmail.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox