@@ -95,7 +95,7 @@ static void drop_all_caches()
* the file and randomly write within it, depending on the prealloc flag
*/
static int test_three(int *max_blocks, int prealloc, int rand_fsync,
- int sync, int drop_caches)
+ int do_sync, int drop_caches)
{
int size = (random() % 2048) + 4;
int blocks = size / 2;
@@ -128,8 +128,8 @@ static int test_three(int *max_blocks, int prealloc, int rand_
}
/* Force a transaction commit in between just for fun */
- if (blocks == sync_block && (sync || drop_caches)) {
- if (sync)
+ if (blocks == sync_block && (do_sync || drop_caches)) {
+ if (do_sync)
sync();
else
sync_file_range(test_fd, 0, 0,