mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC PATCH v2 00/22] fs: Prepare for boot-time page size selection on arm64
@ 2026-12-02  3:15 Eric Curtin
  2026-12-02  3:15 ` [RFC PATCH v2 01/22] smb: client: Use PAGE_SIZE_MIN in the lock element build checks Eric Curtin
                   ` (21 more replies)
  0 siblings, 22 replies; 23+ messages in thread
From: Eric Curtin @ 2026-12-02  3:15 UTC (permalink / raw)
  To: linux-kernel
  Cc: Eric Curtin, Ryan Roberts, ceph-devel, ecryptfs, fuse-devel,
	gfs2, linux-afs, linux-arm-kernel, linux-btrfs, linux-erofs,
	linux-ext4, linux-fsdevel, linux-mm, linux-nfs

From: Eric Curtin <eric.curtin@docker.com>

This series is part of the boot-time page size selection work for arm64,
posted as RFC [1]. With CONFIG_ARM64_BOOT_TIME_PAGE_SIZE=y, PAGE_SIZE,
PAGE_SHIFT and PAGE_MASK are variables chosen at boot with arm64.pagesize=,
so code that needs a compile-time constant (array sizes, struct layouts,
static initialisers, BUILD_BUG_ON(), case labels, #if) has to use the new
PAGE_SIZE_MIN/PAGE_SIZE_MAX limits or a run-time value instead. For fixed
page sizes both limits equal PAGE_SIZE, so behaviour should not change.

The patches here convert filesystems. They apply on top of the core series
[1], whose patch 1 adds PAGE_SIZE_MIN/MAX, and are otherwise independent
of each other. Patches authored by Ryan Roberts come from his v1 [2],
updated for v7.4-rc5. The full tree is at:
  https://github.com/ericcurtin/linux/tree/boot-time-page-size-v2

Testing: allmodconfig with the option enabled builds cleanly on arm64
with all of these applied, and the defconfig kernel boots to userspace
with 4K, 16K and 64K pages under QEMU/KVM (details in [1]). The code in
this series is not otherwise exercised on hardware.

Tool use: these conversions were prepared with an LLM coding assistant
(opencode with Claude Sonnet), driven by build errors and followed by an
automated review pass. I have not hand-audited every patch, so please
review with that in mind and tell me where you would prefer a different
approach for your subsystem.

[1] https://lore.kernel.org/all/20261201015240.1017259-1-ericcurtin17@gmail.com/
[2] https://lore.kernel.org/all/20241014105514.3206191-1-ryan.roberts@arm.com/

Eric Curtin (17):
  smb: client: Use PAGE_SIZE_MIN in the lock element build checks
  fs/resctrl: Define the kernfs_ops as page-size variables
  ocfs2: Use PAGE_SIZE_MIN/MAX for the page-count limits
  ntfs3: Use MAX_BUF_PER_PAGE_SIZE_MAX for struct ntfs_buffers
  ntfs: Use PAGE_SIZE_MIN in NTFS_WOF_MAX_PAGES
  nilfs2: Test PAGE_SIZE at run time in the rec_len conversions
  jfs: Use PAGE_SIZE_MAX to size the metapage anchor arrays
  isofs: Use PAGE_SIZE_MAX for zisofs_sink_page
  ext4: Use PAGE_SIZE_MAX for the inline KUnit test data buffer
  ext2: Test PAGE_SIZE at run time in the rec_len conversions
  erofs: Make the decompressor bounce buffers flexible arrays
  ecryptfs: Resolve the PAGE_SIZE cache sizes at cache creation time
  dlm: Use PAGE_SIZE_MIN in the lowcomms buffer size build check
  cramfs: Allocate the read buffers at init time
  ceph: Use PAGE_SHIFT_MIN in the ceph_fscrypt_blocks() build check
  btrfs: Use PAGE_SIZE_MAX in a static_assert and min_t() for PAGE_SHIFT
  afs: Use PAGE_SIZE_MAX to size struct afs_xdr_dir_page

Ryan Roberts (5):
  fuse: Check CUSE and ioctl buffer sizes against PAGE_SIZE_MIN
  btrfs: Use PAGE_SIZE_MAX and PAGE_SIZE_MIN for compile-time checks
  NFSv4: Use PAGE_SIZE_MIN to size ACL and xattr page arrays
  coredump: Use PAGE_SIZE_MIN for the zero-fill buffer
  fat: Use MAX_BUF_PER_PAGE_SIZE_MAX to size buffer_head arrays


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2026-12-02  3:16 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 01/22] smb: client: Use PAGE_SIZE_MIN in the lock element build checks Eric Curtin
2026-12-02  3:15 ` [RFC PATCH v2 02/22] fs/resctrl: Define the kernfs_ops as page-size variables Eric Curtin
2026-12-02  3:15 ` [RFC PATCH v2 03/22] ocfs2: Use PAGE_SIZE_MIN/MAX for the page-count limits Eric Curtin
2026-12-02  3:15 ` [RFC PATCH v2 04/22] ntfs3: Use MAX_BUF_PER_PAGE_SIZE_MAX for struct ntfs_buffers Eric Curtin
2026-12-02  3:15 ` [RFC PATCH v2 05/22] ntfs: Use PAGE_SIZE_MIN in NTFS_WOF_MAX_PAGES Eric Curtin
2026-12-02  3:15 ` [RFC PATCH v2 06/22] nilfs2: Test PAGE_SIZE at run time in the rec_len conversions Eric Curtin
2026-12-02  3:15 ` [RFC PATCH v2 07/22] jfs: Use PAGE_SIZE_MAX to size the metapage anchor arrays Eric Curtin
2026-12-02  3:15 ` [RFC PATCH v2 08/22] isofs: Use PAGE_SIZE_MAX for zisofs_sink_page 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-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  3:15 ` [RFC PATCH v2 11/22] erofs: Make the decompressor bounce buffers flexible arrays Eric Curtin
2026-12-02  3:15 ` [RFC PATCH v2 12/22] ecryptfs: Resolve the PAGE_SIZE cache sizes at cache creation time Eric Curtin
2026-12-02  3:15 ` [RFC PATCH v2 13/22] dlm: Use PAGE_SIZE_MIN in the lowcomms buffer size build check Eric Curtin
2026-12-02  3:15 ` [RFC PATCH v2 14/22] cramfs: Allocate the read buffers at init time Eric Curtin
2026-12-02  3:15 ` [RFC PATCH v2 15/22] ceph: Use PAGE_SHIFT_MIN in the ceph_fscrypt_blocks() build check Eric Curtin
2026-12-02  3:15 ` [RFC PATCH v2 16/22] btrfs: Use PAGE_SIZE_MAX in a static_assert and min_t() for PAGE_SHIFT Eric Curtin
2026-12-02  3:15 ` [RFC PATCH v2 17/22] afs: Use PAGE_SIZE_MAX to size struct afs_xdr_dir_page Eric Curtin
2026-12-02  3:15 ` [RFC PATCH v2 18/22] fuse: Check CUSE and ioctl buffer sizes against PAGE_SIZE_MIN Eric Curtin
2026-12-02  3:15 ` [RFC PATCH v2 19/22] btrfs: Use PAGE_SIZE_MAX and PAGE_SIZE_MIN for compile-time checks Eric Curtin
2026-12-02  3:15 ` [RFC PATCH v2 20/22] NFSv4: Use PAGE_SIZE_MIN to size ACL and xattr page arrays Eric Curtin
2026-12-02  3:15 ` [RFC PATCH v2 21/22] coredump: Use PAGE_SIZE_MIN for the zero-fill buffer Eric Curtin
2026-12-02  3:15 ` [RFC PATCH v2 22/22] fat: Use MAX_BUF_PER_PAGE_SIZE_MAX to size buffer_head arrays Eric Curtin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®