mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-05 06:10:13 -05:00
Reverse the order of disk buffers that are accessed in backward order.
This improves a little the speed.
This commit is contained in:
parent
3dd6e50c4e
commit
6a3438f883
9 changed files with 31 additions and 11 deletions
|
|
@ -102,7 +102,7 @@ static void recovtest(unsigned diskmax, unsigned block_size)
|
|||
|
||||
buffermax = diskmax + LEV_MAX * 2 + 2;
|
||||
|
||||
buffer = malloc_nofail_vector_align(buffermax, block_size, &buffer_alloc);
|
||||
buffer = malloc_nofail_vector_align(diskmax, buffermax, block_size, &buffer_alloc);
|
||||
mtest_vector(buffer, buffermax, block_size);
|
||||
|
||||
data = buffer;
|
||||
|
|
@ -214,7 +214,7 @@ static void gentest(unsigned diskmax, unsigned block_size)
|
|||
|
||||
buffermax = diskmax + LEV_MAX * 2;
|
||||
|
||||
buffer = malloc_nofail_vector_align(buffermax, block_size, &buffer_alloc);
|
||||
buffer = malloc_nofail_vector_align(diskmax, buffermax, block_size, &buffer_alloc);
|
||||
mtest_vector(buffer, buffermax, block_size);
|
||||
|
||||
/* fill with random */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue