Re: [PATCH 3/3] btrfs: split RAID stripes on deletion
From: Johannes Thumshirn
Date: Tue Jun 11 2024 - 02:39:36 EST
On 10.06.24 21:45, Josef Bacik wrote:
> 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,
Sure. Let me see what I can cook up.