Sync `show_inode_state()` macro with Ubuntu 4.15 kernel
[lttng-modules.git] / include / instrumentation / events / writeback.h
index 32894517dc9fa1eb31fde534958d2342d2c5e8d6..a29016a8ee8058927f642b5e1864a214438e9a56 100644 (file)
@@ -65,8 +65,15 @@ static inline struct backing_dev_info *lttng_inode_to_bdi(struct inode *inode)
 
 #endif
 
+/*
+ * Keep this macro around to track changes in the valid values for `state`.
+ * Eventually, we will have a enum to describe that field. If the macro is
+ * changed by an upstream kernel, the fact that we have a redefinition here
+ * will generate a compiler warning.
+ */
 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,9,0) || \
-       LTTNG_UBUNTU_KERNEL_RANGE(5,4,94,67, 5,5,0,0))
+       LTTNG_UBUNTU_KERNEL_RANGE(5,4,94,67, 5,5,0,0) ||        \
+       LTTNG_UBUNTU_KERNEL_RANGE(4,15,18,141, 4,16,0,0))
 #define show_inode_state(state)                                        \
        __print_flags(state, "|",                               \
                {I_DIRTY_SYNC,          "I_DIRTY_SYNC"},        \
This page took 0.024599 seconds and 4 git commands to generate.