pmemblk: don't use #defines for the pmemblk_* functions
[fio.git] / engines / e4defrag.c
index 6854070932a4d065a3989840b9b758cd4a0a494f..c0667feced3f6609bf6efaf320225c5150662da5 100644 (file)
@@ -17,6 +17,7 @@
 #include <fcntl.h>
 
 #include "../fio.h"
+#include "../optgroup.h"
 
 #ifndef EXT4_IOC_MOVE_EXT
 #define EXT4_IOC_MOVE_EXT               _IOWR('f', 15, struct move_extent)
@@ -98,8 +99,8 @@ static int fio_e4defrag_init(struct thread_data *td)
        }
 
        if (!o->inplace) {
-               long long len = td->o.file_size_high - td->o.start_offset;
-               r = fallocate(ed->donor_fd, 0, td->o.start_offset, len);
+               long long __len = td->o.file_size_high - td->o.start_offset;
+               r = fallocate(ed->donor_fd, 0, td->o.start_offset, __len);
                if (r)
                        goto err;
        }