mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-25 18:40:19 -04:00
Remove the unused number of data disks from the vector allocation
The same addressing rules are applied to the parity disks because they are used as data disks during recovery operations.
This commit is contained in:
parent
7a7dacc6db
commit
76998613da
11 changed files with 21 additions and 24 deletions
|
|
@ -459,7 +459,7 @@ int raid_selftest(void)
|
|||
/* ensure to have enough space for data */
|
||||
BUG_ON(nd * size > 65536);
|
||||
|
||||
v = raid_malloc_vector(nd, nv, size, &v_alloc);
|
||||
v = raid_malloc_vector(nv, size, &v_alloc);
|
||||
if (!v) {
|
||||
/* LCOV_EXCL_START */
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue