Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Johannes Thumshirn <jth@kernel.org>
To: Chris Mason <clm@fb.com>, Josef Bacik <josef@toxicpanda.com>,
	 David Sterba <dsterba@suse.com>
Cc: linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org,
	 Johannes Thumshirn <johannes.thumshirn@wdc.com>
Subject: [PATCH v2 0/4] btrfs: rst: updates for RAID stripe tree
Date: Wed, 19 Jun 2024 17:34:50 +0200	[thread overview]
Message-ID: <20240619-b4-rst-updates-v2-0-89c34d0d5298@kernel.org> (raw)

Three independent updates for RAID stripe tree.
The 1st one removes pointless space from the on-disk format. As the
feature itself is still experimental I'd like to get rid of that as early
as possible.

Patch 2 replaces stripe extents in case we hit a EEXIST when inserting a
stripe extent on a write. This can happen i.e. on device-replace.

Patch 3 splits a stripe extent on partial delete of a stripe.

Patch 4 adds selftests for the stripe-tree delete code, these selftests
can and will be extended to cover insert and get as well

---
Changes in v2:
- Added selftests for delete code
- Link to v1: https://lore.kernel.org/r/20240610-b4-rst-updates-v1-0-179c1eec08f2@kernel.org

---
Johannes Thumshirn (4):
      btrfs: rst: remove encoding field from stripe_extent
      btrfs: replace stripe extents
      btrfs: split RAID stripes on deletion
      btrfs: stripe-tree: add selftests

 fs/btrfs/Makefile                       |   3 +-
 fs/btrfs/accessors.h                    |   3 -
 fs/btrfs/ctree.c                        |   1 +
 fs/btrfs/print-tree.c                   |   5 -
 fs/btrfs/raid-stripe-tree.c             | 150 ++++++++++++++-----
 fs/btrfs/raid-stripe-tree.h             |   8 +-
 fs/btrfs/tests/btrfs-tests.c            |   3 +
 fs/btrfs/tests/btrfs-tests.h            |   1 +
 fs/btrfs/tests/raid-stripe-tree-tests.c | 258 ++++++++++++++++++++++++++++++++
 fs/btrfs/tree-checker.c                 |  19 ---
 include/uapi/linux/btrfs_tree.h         |  14 +-
 11 files changed, 384 insertions(+), 81 deletions(-)
---
base-commit: 7f5983607be0823e94c20f565915faf9074a370d
change-id: 20240610-b4-rst-updates-d0aa696b9d5a

Best regards,
-- 
Johannes Thumshirn <jth@kernel.org>


             reply	other threads:[~2024-06-19 15:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-19 15:34 Johannes Thumshirn [this message]
2024-06-19 15:34 ` [PATCH v2 1/4] btrfs: rst: remove encoding field from stripe_extent Johannes Thumshirn
2024-06-19 15:34 ` [PATCH v2 2/4] btrfs: replace stripe extents Johannes Thumshirn
2024-06-19 15:34 ` [PATCH v2 3/4] btrfs: split RAID stripes on deletion Johannes Thumshirn
2024-06-19 15:34 ` [PATCH v2 4/4] btrfs: stripe-tree: add selftests Johannes Thumshirn

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=20240619-b4-rst-updates-v2-0-89c34d0d5298@kernel.org \
    --to=jth@kernel.org \
    --cc=clm@fb.com \
    --cc=dsterba@suse.com \
    --cc=johannes.thumshirn@wdc.com \
    --cc=josef@toxicpanda.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=linux-kernel@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