X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=engines%2Fnull.c;h=823d40def272c820a2d635b994483af94a61b014;hb=a26fc7c568964658aa2b98610ebd9054e2477456;hp=724feca716edea0d105be29fab963ffd6f97341f;hpb=7bb48f84ac78cac1f90e3e04d0220d90d6a64a6b;p=fio.git diff --git a/engines/null.c b/engines/null.c index 724feca7..823d40de 100644 --- a/engines/null.c +++ b/engines/null.c @@ -12,7 +12,6 @@ #include #include "../fio.h" -#include "../os.h" struct null_data { struct io_u **io_us; @@ -66,21 +65,9 @@ static int fio_null_queue(struct thread_data fio_unused *td, struct io_u *io_u) return FIO_Q_QUEUED; } -static int fio_null_setup(struct thread_data *td) -{ - struct fio_file *f; - unsigned int i; - - for_each_file(td, f, i) - f->real_file_size = -1ULL; - - return 0; -} - static int fio_null_open(struct thread_data fio_unused *td, struct fio_file fio_unused *f) { - f->fd = 0; return 0; } @@ -115,7 +102,6 @@ static int fio_null_init(struct thread_data *td) static struct ioengine_ops ioengine = { .name = "null", .version = FIO_IOOPS_VERSION, - .setup = fio_null_setup, .queue = fio_null_queue, .commit = fio_null_commit, .getevents = fio_null_getevents,