Merge tag 'iomap-6.4-merge-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux
[platform/kernel/linux-starfive.git] / include / linux / fs.h
index 67495ef..21a9816 100644 (file)
@@ -343,6 +343,20 @@ enum rw_hint {
 /* can use bio alloc cache */
 #define IOCB_ALLOC_CACHE       (1 << 21)
 
+/* for use in trace events */
+#define TRACE_IOCB_STRINGS \
+       { IOCB_HIPRI,           "HIPRI" }, \
+       { IOCB_DSYNC,           "DSYNC" }, \
+       { IOCB_SYNC,            "SYNC" }, \
+       { IOCB_NOWAIT,          "NOWAIT" }, \
+       { IOCB_APPEND,          "APPEND" }, \
+       { IOCB_EVENTFD,         "EVENTFD"}, \
+       { IOCB_DIRECT,          "DIRECT" }, \
+       { IOCB_WRITE,           "WRITE" }, \
+       { IOCB_WAITQ,           "WAITQ" }, \
+       { IOCB_NOIO,            "NOIO" }, \
+       { IOCB_ALLOC_CACHE,     "ALLOC_CACHE" }
+
 struct kiocb {
        struct file             *ki_filp;
        loff_t                  ki_pos;