From: Qu Wenruo <wqu@suse.com>
To: linux-btrfs@vger.kernel.org
Subject: [PATCH 0/2] btrfs: subpage: pack all subpage bitmaps into a larger bitmap
Date: Mon, 16 Aug 2021 14:00:34 +0800 [thread overview]
Message-ID: <20210816060036.57788-1-wqu@suse.com> (raw)
Currently we use u16 bitmap to make 4k sectorsize work for 64K page
size.
But this u16 bitmap is not large enough to contain larger page size like
128K, nor is space efficient for 16K page size.
To handle both cases, here we pack all subpage bitmaps into a larger
bitmap, now btrfs_subpage::bitmaps[] will be the ultimate bitmap for
subpage usage.
This is the first step towards more page size support.
Although to really enable extra page size like 16K and 128K, we need to
rework the metadata alignment check first.
Which will happen in another patchset.
Qu Wenruo (2):
btrfs: introduce btrfs_subpage_bitmap_info
btrfs: subpage: pack all subpage bitmaps into a larger bitmap
fs/btrfs/ctree.h | 1 +
fs/btrfs/disk-io.c | 12 ++-
fs/btrfs/extent_io.c | 58 +++++++++------
fs/btrfs/subpage.c | 172 ++++++++++++++++++++++++++++++++-----------
fs/btrfs/subpage.h | 41 +++++++----
5 files changed, 201 insertions(+), 83 deletions(-)
--
2.32.0
next reply other threads:[~2021-08-16 6:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-16 6:00 Qu Wenruo [this message]
2021-08-16 6:00 ` [PATCH 1/2] btrfs: introduce btrfs_subpage_bitmap_info Qu Wenruo
2021-08-16 9:28 ` Nikolay Borisov
2021-08-16 10:12 ` Qu Wenruo
2021-08-16 10:17 ` David Sterba
2021-08-16 6:00 ` [PATCH 2/2] btrfs: subpage: pack all subpage bitmaps into a larger bitmap Qu Wenruo
2021-08-16 10:26 ` Nikolay Borisov
2021-08-16 13:41 ` Qu Wenruo
2021-08-16 14:27 ` Nikolay Borisov
2021-08-16 23:18 ` Qu Wenruo
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=20210816060036.57788-1-wqu@suse.com \
--to=wqu@suse.com \
--cc=linux-btrfs@vger.kernel.org \
/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