aio-dio-append-write-fallocate-race: fix directio buffer alignment bugs
[xfstests-dev.git] / src / aio-dio-regress / aio-dio-append-write-fallocate-race.c
index 091b047..d3a2e5f 100644 (file)
@@ -65,7 +65,7 @@ test(
        }
        blocksize = sbuf.st_blksize;
 
-       ret = posix_memalign((void **)&buf, blocksize, blocksize);
+       ret = posix_memalign((void **)&buf, sysconf(_SC_PAGESIZE), blocksize);
        if (ret) {
                errno = ret;
                perror("buffer");