make sure __rand_0_1 does not return 0.0
[fio.git] / engines / e4defrag.c
index 6854070932a4d065a3989840b9b758cd4a0a494f..d6113a97ee9b6565dbdf8e5dc0381491bf6b61a4 100644 (file)
@@ -98,8 +98,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;
        }