File btrfs-move-basic-block_group-definitions-to-their-own-header.patch of Package lttng-modules.20220

From: Michael Jeanson <mjeanson@efficios.com>
Date: Mon Sep 30 15:15:34 2019 -0400
Subject: btrfs: move basic block_group definitions to their own header 
Git-commit: 8bd83947195193c277b6d31aef56a1e5576da74c
References: bsc#1167703
Signed-off-by: Tony Jones <tonyj@suse.de>

    Fix: btrfs: move basic block_group definitions to their own header (v5.4)
    
      commit aac0023c2106952538414254960c51dcf0dc39e9
      Author: Josef Bacik <josef@toxicpanda.com>
      Date:   Thu Jun 20 15:37:44 2019 -0400
    
        btrfs: move basic block_group definitions to their own header
    
        This is prep work for moving all of the block group cache code into its
        own file.
    
    Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
    Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>

diff --git a/probes/lttng-probe-btrfs.c b/probes/lttng-probe-btrfs.c
index 89fa351..52f8cfe 100644
--- a/probes/lttng-probe-btrfs.c
+++ b/probes/lttng-probe-btrfs.c
@@ -23,9 +23,13 @@
 
 #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) || defined (CONFIG_SUSE_KERNEL))
+#include <../fs/btrfs/block-group.h>
+#endif
 #include <linux/dcache.h>
 #include <lttng-tracer.h>
 
openSUSE Build Service is sponsored by