Enforce mode parity limits

This commit is contained in:
Andrea Mazzoleni 2026-08-20 01:22:31 +02:00
parent 114c5ab5b8
commit 5325c11b10
4 changed files with 16 additions and 6 deletions

View file

@ -295,6 +295,9 @@ void raid_delta_gen(int nr, int *id, int *ip, int nd, size_t size, void **v)
int np;
void *latest;
/* zero buffer must be initialized prior to delta recovery */
BUG_ON(raid_zero_block == 0);
/*
* Total number of parities we are going to process
* they are both the used and the unused ones