Document streaming parameter as a strict 0 or 1 value

This commit is contained in:
Andrea Mazzoleni 2026-09-16 08:39:22 +02:00
parent de00981504
commit bfe5ee7643
5 changed files with 12 additions and 10 deletions

View file

@ -88,7 +88,7 @@ void raid_gen(int nd, int np, size_t size, void **v, int streaming)
/* enforce valid vector */
BUG_ON(v == 0);
/* enforce valid streaming flag */
/* enforce the documented 0/1 store policy */
BUG_ON(streaming != 0 && streaming != 1);
BUG_ON(raid_gen_ptr[np - 1] == 0);