All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] rnull: support 64K pages
@ 2026-12-02  9:23 Vitaly Wool
  2026-12-02  9:23 ` [PATCH 1/2] rust: bitmap: add BitmapArray Vitaly Wool
  2026-12-02 14:13 ` [PATCH 0/2] rnull: support 64K pages Yury Norov
  0 siblings, 2 replies; 4+ messages in thread
From: Vitaly Wool @ 2026-12-02  9:23 UTC (permalink / raw)
  To: Andreas Hindborg, Jens Axboe, Yury Norov
  Cc: Burak Emir, Boqun Feng, Alice Ryhl, Miguel Ojeda, Gary Guo,
	Björn Roy Baron, Benno Lossin, Trevor Gross,
	Danilo Krummrich, Daniel Almeida, Tamir Duberstein,
	Alexandre Courbot, Onur Özkan, linux-block, rust-for-linux,
	linux-kernel, Vitaly Wool

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

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

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02  9:23 [PATCH 0/2] rnull: support 64K pages Vitaly Wool
2026-12-02  9:23 ` [PATCH 1/2] rust: bitmap: add BitmapArray Vitaly Wool
2026-12-02 15:02   ` Yury Norov
2026-12-02 14:13 ` [PATCH 0/2] rnull: support 64K pages Yury Norov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.