os-linux: add initial support for IO priority hints
[fio.git] / io_u.h
diff --git a/io_u.h b/io_u.h
index 206e24fee09ec955a05220203576a6e9c03220d3..b432a54010ebc5f154e1ff7e220c9719c001a33d 100644 (file)
--- a/io_u.h
+++ b/io_u.h
@@ -21,6 +21,7 @@ enum {
        IO_U_F_TRIMMED          = 1 << 5,
        IO_U_F_BARRIER          = 1 << 6,
        IO_U_F_VER_LIST         = 1 << 7,
+       IO_U_F_PATTERN_DONE     = 1 << 8,
 };
 
 /*
@@ -117,6 +118,9 @@ struct io_u {
         */
        int (*end_io)(struct thread_data *, struct io_u **);
 
+       uint32_t dtype;
+       uint32_t dspec;
+
        union {
 #ifdef CONFIG_LIBAIO
                struct iocb iocb;
@@ -158,7 +162,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)