X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=ioengine.h;h=29c8487a0c12ca9fd21527792b9a565ac60524f1;hp=6e3c717f185414bfd20342d30635eaa60da78197;hb=f8b0bd103ba18def828a0eab5611484486eed566;hpb=56785384eb15a937f275292109603e51a5191365 diff --git a/ioengine.h b/ioengine.h index 6e3c717f..29c8487a 100644 --- a/ioengine.h +++ b/ioengine.h @@ -15,12 +15,12 @@ #include #endif -#define FIO_IOOPS_VERSION 18 +#define FIO_IOOPS_VERSION 19 enum { IO_U_F_FREE = 1 << 0, IO_U_F_FLIGHT = 1 << 1, - IO_U_F_FREE_DEF = 1 << 2, + IO_U_F_NO_FILE_PUT = 1 << 2, IO_U_F_IN_CUR_DEPTH = 1 << 3, IO_U_F_BUSY_OK = 1 << 4, IO_U_F_TRIMMED = 1 << 5, @@ -90,7 +90,7 @@ struct io_u { /* * Callback for io completion */ - int (*end_io)(struct thread_data *, struct io_u *); + int (*end_io)(struct thread_data *, struct io_u **); union { #ifdef CONFIG_LIBAIO @@ -143,6 +143,7 @@ struct ioengine_ops { void (*cleanup)(struct thread_data *); int (*open_file)(struct thread_data *, struct fio_file *); int (*close_file)(struct thread_data *, struct fio_file *); + int (*invalidate)(struct thread_data *, struct fio_file *); int (*get_file_size)(struct thread_data *, struct fio_file *); void (*terminate)(struct thread_data *); int (*io_u_init)(struct thread_data *, struct io_u *);