From: Michael Jeanson Date: Mon, 16 Jan 2023 20:01:51 +0000 (-0500) Subject: fix: btrfs: move accessor helpers into accessors.h (v6.2) X-Git-Tag: v2.13.9~4 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=69d3aa79a641f539cfd5c11b46b2dd9b4df9b0f0;p=lttng-modules.git fix: btrfs: move accessor helpers into accessors.h (v6.2) See upstream commit : commit 07e81dc94474eb62705c6f96d9ab1a5a797b8703 Author: Josef Bacik Date: Wed Oct 19 10:51:00 2022 -0400 btrfs: move accessor helpers into accessors.h This is a large patch, but because they're all macros it's impossible to split up. Simply copy all of the item accessors in ctree.h and paste them in accessors.h, and then update any files to include the header so everything compiles. Change-Id: I1f0876dd8b7a8687f6802b60c3e3baabd017cc52 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/include/instrumentation/events/btrfs.h b/include/instrumentation/events/btrfs.h index 785f16ac..01157107 100644 --- a/include/instrumentation/events/btrfs.h +++ b/include/instrumentation/events/btrfs.h @@ -9,6 +9,10 @@ #include #include +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,2,0)) +#include <../fs/btrfs/accessors.h> +#endif + #ifndef _TRACE_BTRFS_DEF_ #define _TRACE_BTRFS_DEF_ struct btrfs_root;