X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=engines%2Fnull.c;h=823d40def272c820a2d635b994483af94a61b014;hb=a26fc7c568964658aa2b98610ebd9054e2477456;hp=318952c2c00d492bed40486c05a12d3300a6a075;hpb=f4e62a5f3640dfe2d2119bbe1e40bf57747f6564;p=fio.git diff --git a/engines/null.c b/engines/null.c index 318952c2..823d40de 100644 --- a/engines/null.c +++ b/engines/null.c @@ -65,21 +65,6 @@ 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) { - if (td->o.size) - f->real_file_size = td->o.size / td->o.nr_files; - else - f->real_file_size = -1ULL; - } - - return 0; -} - static int fio_null_open(struct thread_data fio_unused *td, struct fio_file fio_unused *f) { @@ -117,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,