X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=io_u.h;h=ab93d50f967e78547961e7650b2921f53f64f6b9;hb=9213e16d98b0e9d2f8d4f7e760ed0fd45c8960f6;hp=55b4d08312b2d3fff93f341ff194f22a426d09e6;hpb=14520f23661673fcd0fc4b4c27b3bd7b5b9fe524;p=fio.git diff --git a/io_u.h b/io_u.h index 55b4d083..ab93d50f 100644 --- a/io_u.h +++ b/io_u.h @@ -52,6 +52,11 @@ struct io_u { unsigned short ioprio; unsigned short clat_prio_index; + /* + * number of trim ranges for this IO. + */ + unsigned int number_trim; + /* * Allocated/set buffer and length */ @@ -89,8 +94,8 @@ struct io_u { union { unsigned int index; unsigned int seen; - void *engine_data; }; + void *engine_data; union { struct flist_head verify_list; @@ -162,7 +167,7 @@ void io_u_mark_submit(struct thread_data *, unsigned int); bool queue_full(const struct thread_data *); int do_io_u_sync(const struct thread_data *, struct io_u *); -int do_io_u_trim(const struct thread_data *, struct io_u *); +int do_io_u_trim(struct thread_data *, struct io_u *); #ifdef FIO_INC_DEBUG static inline void dprint_io_u(struct io_u *io_u, const char *p)