mmap engine: make sure that page unaligned syncs work
[fio.git] / fio.c
diff --git a/fio.c b/fio.c
index 85eb22be94207c518ac71ef3dec59ffb955d9956..e6bd18a0c037390f1ec91764007a61a07dc7159e 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -37,7 +37,8 @@
 #include "fio.h"
 #include "os.h"
 
-static unsigned long page_mask;
+unsigned long page_mask;
+unsigned long page_size;
 #define ALIGN(buf)     \
        (char *) (((unsigned long) (buf) + page_mask) & ~page_mask)
 
@@ -1158,6 +1159,7 @@ int main(int argc, char *argv[])
                return 1;
        }
 
+       page_size = ps;
        page_mask = ps - 1;
 
        if (write_bw_log) {