]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: implement hole punching for RAID stripe extents
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Mon, 13 Jan 2025 19:31:48 +0000 (20:31 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 14 Jan 2025 14:52:13 +0000 (15:52 +0100)
commit6aa0e7cc569eb24a7a99c70ad7477d454b3ac0ca
treed2f072f4df158155f3c6e380dd06519792f0a5fc
parent76643119045eed639a3334370cba30c54c4074c1
btrfs: implement hole punching for RAID stripe extents

If the stripe extent we want to delete starts before the range we want to
delete and ends after the range we want to delete we're punching a
hole in the stripe extent:

  |--- RAID Stripe Extent ---|
  | keep |--- drop ---| keep |

This means we need to a) truncate the existing item and b)
create a second item for the remaining range.

Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c
fs/btrfs/raid-stripe-tree.c