Merge pull request #228 from breuner/fix-mdtest-directio

mdtest: use correct number of bytes for posix_memalign of read buffer
master
Glenn K. Lockwood 2020-06-02 16:22:58 -07:00 committed by GitHub
commit d4d3c72efb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -633,7 +633,7 @@ void mdtest_read(int random, int dirs, const long dir_iter, char *path) {
/* allocate read buffer */
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) {
FAIL("out of memory");
}