From: Yury Norov <ynorov@nvidia.com>
To: Vitaly Wool <vitaly.wool@konsulko.se>
Cc: "Andreas Hindborg" <a.hindborg@kernel.org>,
"Yury Norov" <yury.norov@gmail.com>,
"Jens Axboe" <axboe@kernel.dk>,
"Burak Emir" <burak.emir@gmail.com>,
"Boqun Feng" <boqun@kernel.org>,
"Alice Ryhl" <aliceryhl@google.com>,
"Miguel Ojeda" <ojeda@kernel.org>, "Gary Guo" <gary@garyguo.net>,
"Björn Roy Baron" <bjorn3_gh@protonmail.com>,
"Benno Lossin" <lossin@kernel.org>,
"Trevor Gross" <tmgross@umich.edu>,
"Danilo Krummrich" <dakr@kernel.org>,
"Daniel Almeida" <daniel.almeida@collabora.com>,
"Tamir Duberstein" <tamird@kernel.org>,
"Alexandre Courbot" <acourbot@nvidia.com>,
"Onur Özkan" <work@onurozkan.dev>,
linux-block@vger.kernel.org, rust-for-linux@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: Re: [PATCH 1/2] rnull: support 64K pages
Date: Wed, 2 Dec 2026 13:59:34 -0500 [thread overview]
Message-ID: <axBqlhDjiOaWK2wH@yury> (raw)
In-Reply-To: <20261202180530.825141-1-vitaly.wool@konsulko.se>
On Wed, Dec 02, 2026 at 07:05:30PM +0100, Vitaly Wool wrote:
> <snip>
> > > A `BitmapVec` keeps up to `usize::BITS` bits inline and allocates its
> > > storage with `bitmap_zalloc()` beyond that. A bitmap embedded in a
> > > structure that is allocated anyway, with a maximum length known at
> > > compile time, then needs a second allocation and a pointer to follow,
> > > or `unsafe` code that wraps an array with `Bitmap::from_raw()`.
> > >
> > > Add `BitmapArray<WORDS>`, an owned bitmap of up to `WORDS` words of
> > > bits stored inline, which never allocates and dereferences to `Bitmap`
> > > like `BitmapVec`.
>
> > BitmapArray is a tautology. Bitmap is already an "array of bits". So
> > unless you're talking about 2d bitmaps, the name is wrong
>
> Well, this is a theological thing in some sense. One may argue that a
> bitmap is a _vector_ of bits, so BitmapVec is also a tautology. I would
> prefer we didn't go into that rabbit hole.
That's true. I overlooked that when BitmapVec was proposed. The
proper name for it is BitVec. Feel free to submit a patch.
next prev parent reply other threads:[~2026-12-02 18:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
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 18:05 ` Re: [PATCH 1/2] rnull: support 64K pages Vitaly Wool
2026-12-02 18:59 ` Yury Norov [this message]
2026-12-02 14:13 ` [PATCH 0/2] " Yury Norov
2026-12-02 17:24 ` Vitaly Wool
2026-12-02 18:32 ` Andreas Hindborg
2026-12-02 18:46 ` Gary Guo
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=axBqlhDjiOaWK2wH@yury \
--to=ynorov@nvidia.com \
--cc=a.hindborg@kernel.org \
--cc=acourbot@nvidia.com \
--cc=aliceryhl@google.com \
--cc=axboe@kernel.dk \
--cc=bjorn3_gh@protonmail.com \
--cc=boqun@kernel.org \
--cc=burak.emir@gmail.com \
--cc=dakr@kernel.org \
--cc=daniel.almeida@collabora.com \
--cc=gary@garyguo.net \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lossin@kernel.org \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=tamird@kernel.org \
--cc=tmgross@umich.edu \
--cc=vitaly.wool@konsulko.se \
--cc=work@onurozkan.dev \
--cc=yury.norov@gmail.com \
/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