public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/2] implement truncation for RAID stripe-extents
@ 2024-10-23 13:25 Johannes Thumshirn
  2024-10-23 13:25 ` [PATCH v5 1/2] btrfs: implement partial deletion of RAID stripe extents Johannes Thumshirn
  2024-10-23 13:25 ` [PATCH v5 2/2] btrfs: implement self-tests for partial RAID srtipe-tree delete Johannes Thumshirn
  0 siblings, 2 replies; 7+ messages in thread
From: Johannes Thumshirn @ 2024-10-23 13:25 UTC (permalink / raw)
  To: linux-btrfs
  Cc: Josef Bacik, David Sterba, Filipe Manana, Naohiro Aota,
	Johannes Thumshirn

Implement truncation of RAID stripe-tree entries and add selftests for these
two edge cases of deletion to the RAID stripe-tree selftests.

Changes to v4:
- Use btrfs_set_item_key_save() instead of duplicate item (Filipe)
- Add forgotten btrfs_put_bioc() in selftests (Filipe)

Link to v4:
https://lore.kernel.org/linux-btrfs/20241017090411.25336-1-jth@kernel.org

Changes to v3:
- Use btrfs_duplicate_item() (Filipe)
- User key.offset = 0 in btrfs_search_slot() so we can find "front" delete
Link to v3:
https://lore.kernel.org/linux-btrfs/20241009153032.23336-1-jth@kernel.org

Changes to v2:
- Correctly adjust the btree keys and insert new items instead (Filipe)
- Add selftests

Link to v2:
https://lore.kernel.org/linux-btrfs/20240911095206.31060-1-jth@kernel.org


Johannes Thumshirn (2):
  btrfs: implement partial deletion of RAID stripe extents
  btrfs: implement self-tests for partial RAID srtipe-tree delete

 fs/btrfs/raid-stripe-tree.c             |  81 ++++++++-
 fs/btrfs/tests/raid-stripe-tree-tests.c | 224 ++++++++++++++++++++++++
 2 files changed, 298 insertions(+), 7 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2024-10-24  7:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-23 13:25 [PATCH v5 0/2] implement truncation for RAID stripe-extents Johannes Thumshirn
2024-10-23 13:25 ` [PATCH v5 1/2] btrfs: implement partial deletion of RAID stripe extents Johannes Thumshirn
2024-10-23 13:46   ` Filipe Manana
2024-10-23 13:25 ` [PATCH v5 2/2] btrfs: implement self-tests for partial RAID srtipe-tree delete Johannes Thumshirn
2024-10-23 17:45   ` Filipe Manana
2024-10-23 18:53     ` David Sterba
2024-10-24  7:50       ` Johannes Thumshirn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox