mdtest: use correct number of bytes for posix_memalign of read buffer
Fixes a typo in initial posix_memalign commit for DirectIO support.master
parent
3eb488939d
commit
c828a0f32c
|
@ -633,7 +633,7 @@ void mdtest_read(int random, int dirs, const long dir_iter, char *path) {
|
||||||
|
|
||||||
/* allocate read buffer */
|
/* allocate read buffer */
|
||||||
if (read_bytes > 0) {
|
if (read_bytes > 0) {
|
||||||
int alloc_res = posix_memalign((void**)&read_buffer, sysconf(_SC_PAGESIZE), write_bytes);
|
int alloc_res = posix_memalign((void**)&read_buffer, sysconf(_SC_PAGESIZE), read_bytes);
|
||||||
if (alloc_res) {
|
if (alloc_res) {
|
||||||
FAIL("out of memory");
|
FAIL("out of memory");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue