mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-26 09:56:29 -05: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
287135e2c1
commit
9ce976232c
11 changed files with 21 additions and 24 deletions
|
|
@ -23,13 +23,13 @@ void* malloc_nofail_direct(size_t size, void** freeptr);
|
|||
* Safe aligned vector allocation.
|
||||
* If no memory is available, it aborts.
|
||||
*/
|
||||
void** malloc_nofail_vector_align(int nd, int n, size_t size, void** freeptr);
|
||||
void** malloc_nofail_vector_align(int n, size_t size, void** freeptr);
|
||||
|
||||
/**
|
||||
* Safe page vector allocation. Usable for direct io.
|
||||
* If no memory is available, it aborts.
|
||||
*/
|
||||
void** malloc_nofail_vector_direct(int nd, int n, size_t size, void** freeptr);
|
||||
void** malloc_nofail_vector_direct(int n, size_t size, void** freeptr);
|
||||
|
||||
/**
|
||||
* Safe allocation with memory test.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue