X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=engines%2Ffilecreate.c;h=d753df24c94f830b6ef581a754677a8c0212b1ff;hp=171dcc95b025d9331d9158a57acde012e482737e;hb=0410e7834e18760c4b38d8e51483c649d47aa0c0;hpb=52582166d723870f68e7f4ff7532de13b3cdeaea diff --git a/engines/filecreate.c b/engines/filecreate.c index 171dcc95..d753df24 100644 --- a/engines/filecreate.c +++ b/engines/filecreate.c @@ -14,7 +14,7 @@ static int open_file(struct thread_data *td, struct fio_file *f) { - struct timespec start, end; + struct timespec start; int do_lat = !td->o.disable_lat; dprint(FD_FILE, "fd open %s\n", f->file_name); @@ -43,10 +43,9 @@ static int open_file(struct thread_data *td, struct fio_file *f) } if (do_lat) { - unsigned long long nsec; + uint64_t nsec; - fio_gettime(&end, NULL); - nsec = ntime_since(&start, &end); + nsec = ntime_since_now(&start); add_lat_sample(td, DDIR_WRITE, nsec, 0, 0); } @@ -76,7 +75,8 @@ static struct ioengine_ops ioengine = { .get_file_size = get_file_size, .open_file = open_file, .close_file = generic_close_file, - .flags = FIO_DISKLESSIO | FIO_SYNCIO | FIO_FAKEIO, + .flags = FIO_DISKLESSIO | FIO_SYNCIO | FIO_FAKEIO | + FIO_NOSTATS, }; static void fio_init fio_filecreate_register(void)