[PATCH 0/2] rnull: support 64K pages

From: Vitaly Wool

Date: Wed Dec 02 2026 - 04:23:51 EST


rnull does not build with 64K pages: NullBlockPage keeps the status of
a page's sectors in a single u64, and a static assertion limits pages
to 64 sectors, while a 64K page has 128. This also affects other
architectures with pages larger than 32K.

Patch 1 adds BitmapArray, a kernel::bitmap type that stores up to a
compile-time number of words of bits inline, never allocates and
dereferences to Bitmap like BitmapVec. Patch 2 uses it for the status,
sized for the sectors of a page, so that a backing page still needs no
extra allocation. This also resolves the TODO to use the Rust bitmap.

The series is based on rnull-v7.4-rc2 from Andreas' tree [1].

Vitaly Wool (2):
rust: bitmap: add BitmapArray
rnull: size the sector status bitmap for any page size

drivers/block/rnull/disk_storage/page.rs | 44 ++++++------
rust/kernel/bitmap.rs | 91 ++++++++++++++++++++++++
2 files changed, 115 insertions(+), 20 deletions(-)


base-commit: 9c0fceca4feed5f1056f55abe9c7c70731402776
--
2.39.5

[1] https://github.com/metaspace/linux