Re: [PATCH 3/3] btrfs: split RAID stripes on deletion

From: Josef Bacik
Date: Mon Jun 10 2024 - 15:45:25 EST


On Mon, Jun 10, 2024 at 10:40:27AM +0200, Johannes Thumshirn wrote:
> From: JohnnesThumshirn <johannes.thumshirn@xxxxxxx>
>
> The current RAID stripe code assumes, that we will always remove a
> whole stripe entry.
>
> But ff we're only removing a part of a RAID stripe we're hitting the
> ASSERT()ion checking for this condition.
>
> Instead of assuming the complete deletion of a RAID stripe, split the
> stripe if we need to.
>
> Signed-off-by: Johnnes Thumshirn <johannes.thumshirn@xxxxxxx>

I'd like a selftest for this helper, should be relatively straightforward to do,
just to test edgecases and such. Thanks,

Josef