+
+ if (warmup_mode) {
+ int scale = 1;
+ if (read_size > (1 << 20)) {
+ scale = read_size / (1 << 20);
+ }
+ printf("Warming up file %d\n", warmup_counter);
+ if (warmup_counter >= bench_files->len * scale)
+ return;
+ bf = &g_array_index(bench_files, struct bench_file,
+ warmup_counter / scale);
+ send_read_request(nfs, bf->inum, (warmup_counter % scale) << 20,
+ read_size > (1 << 20) ? (1 << 20) : read_size);
+ warmup_counter++;
+ return;
+ }
+