Cleanup: Remove toplevel directory from include search path
[lttng-modules.git] / probes / lttng-probe-btrfs.c
index b531197652a5627f01a2f8c73ff5482ed2036201..b6a38eee9b1c3f68713d562a9bc0fe954461e488 100644 (file)
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1)
+/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
  *
  * probes/lttng-probe-btrfs.c
  *
 
 #include <linux/module.h>
 #include <linux/fs.h>
+#include <linux/version.h>
 #include <../fs/btrfs/ctree.h>
 #include <../fs/btrfs/transaction.h>
 #include <../fs/btrfs/volumes.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,4,0))
+#include <../fs/btrfs/block-group.h>
+#endif
 #include <linux/dcache.h>
-#include <lttng-tracer.h>
+#include <lttng/tracer.h>
 
 /*
  * Create the tracepoint static inlines from the kernel to validate that our
This page took 0.022937 seconds and 4 git commands to generate.