mkfs.erofs: should MAX_BLOCK_SIZE be tied to build host page size?

Matthew Lear matthew.lear at raspberrypi.com
Wed Feb 25 03:29:03 AEDT 2026


On Wed, Feb 25 2026 at 12:09:07 am +08, Gao Xiang
<hsiangkao at linux.alibaba.com> wrote:
>> With 64K, the memory footprint would be significantly larger.
>> What do you think?
>
> I understand your concern although I think they are just
> for temporary use, and 64k is still not too huge and
> the userspace stack is less worried.
>
> Or how about just use max(PAGE_SIZE, 16k) instead for
> aarch64? then you will get 16k for most of the time
> unless PAGE_SIZE > 16k.

That seems a good solution, and I imagine we'd want to retain the
existing configure switch. I'll work on a patch for submission.
--  Matt


More information about the Linux-erofs mailing list