From: David Sterba <dsterba@suse.com>
To: linux-btrfs@vger.kernel.org
Cc: David Sterba <dsterba@suse.com>
Subject: [PATCH 0/1 v2] Convert btrfs_root::delayed_nodes_tree to xarray
Date: Wed, 6 Dec 2023 15:16:01 +0100 [thread overview]
Message-ID: <cover.1701871671.git.dsterba@suse.com> (raw)
v2:
- rework it so we can still use GFP_NOFS for allocation, emulating the
preload mechanism with the xarray API, no changes to locking needed
- tested with error injections instead of xa_reserve()
v1:
This restarts the radix-tree to xarray conversion that we had to revert.
There are two more structures to convert, possibly with also spinlock to
mutex conversions needed (buffer_radix and fs_roots_radix), but for the
buffer radix I don't want to do now as we have the folio conversion
ongoing. The fs_roots will most likely need the lock conversion so
that's a change that I want to take the whole dev cycle, planned for 6.9.
David Sterba (1):
btrfs: switch btrfs_root::delayed_nodes_tree to xarray from radix-tree
fs/btrfs/ctree.h | 6 ++--
fs/btrfs/delayed-inode.c | 64 ++++++++++++++++++++++------------------
fs/btrfs/disk-io.c | 3 +-
fs/btrfs/inode.c | 2 +-
4 files changed, 41 insertions(+), 34 deletions(-)
--
2.42.1
next reply other threads:[~2023-12-06 14:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-06 14:16 David Sterba [this message]
2023-12-06 14:16 ` [PATCH 1/1 v2] btrfs: switch btrfs_root::delayed_nodes_tree to xarray from radix-tree David Sterba
2023-12-06 15:52 ` Filipe Manana
2023-12-06 16:19 ` Filipe Manana
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=cover.1701871671.git.dsterba@suse.com \
--to=dsterba@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