X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=probes%2Flttng-probe-btrfs.c;h=afb3acb35edf7b227c367b3a12bc5fe5bedc0f20;hb=ce9caf19b0c23e7a9526f3b2d07bfb19d11914ad;hp=b531197652a5627f01a2f8c73ff5482ed2036201;hpb=9f36eaed6f91d5897924b551b44d1edd8cee00e2;p=lttng-modules.git diff --git a/probes/lttng-probe-btrfs.c b/probes/lttng-probe-btrfs.c index b5311976..afb3acb3 100644 --- a/probes/lttng-probe-btrfs.c +++ b/probes/lttng-probe-btrfs.c @@ -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 * @@ -10,9 +10,13 @@ #include #include +#include #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 #include