btrfs: include trace header in where necessary
authorJosef Bacik <josef@toxicpanda.com>
Fri, 25 Aug 2023 20:19:28 +0000 (16:19 -0400)
committerDavid Sterba <dsterba@suse.com>
Thu, 12 Oct 2023 14:44:03 +0000 (16:44 +0200)
If we no longer include the tracepoints from ctree.h we fail to compile
because we have the dependency in some of the header files and source
files.  Add the include where we have these dependencies to allow us to
remove the include from ctree.h.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/async-thread.c
fs/btrfs/btrfs_inode.h
fs/btrfs/locking.c
fs/btrfs/space-info.h

index ce083e99ef6894d729c57e56d7af30f220588248..714ca74b66bf98650a2b65affd819265f73883dc 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/list.h>
 #include <linux/spinlock.h>
 #include <linux/freezer.h>
+#include <trace/events/btrfs.h>
 #include "async-thread.h"
 #include "ctree.h"
 
index bca97a6bb246eb8ae2646c8b620de4797be4fffa..b675dc09845d77795c5b45d6cd96ac4992cc9f58 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/hash.h>
 #include <linux/refcount.h>
 #include <linux/fscrypt.h>
+#include <trace/events/btrfs.h>
 #include "extent_map.h"
 #include "extent_io.h"
 #include "ordered-data.h"
index 7979449a58d6b528780b149d7850bfdb23a6cefa..79a125c0f4a26798e6a88d2a4c58b6eecfe31567 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/spinlock.h>
 #include <linux/page-flags.h>
 #include <asm/bug.h>
+#include <trace/events/btrfs.h>
 #include "misc.h"
 #include "ctree.h"
 #include "extent_io.h"
index 0bb9d14e60a82feaa2f1df30347f90f596600efd..ac0ce83f14771b6ea247df9a4a5c508e9cad9393 100644 (file)
@@ -3,6 +3,7 @@
 #ifndef BTRFS_SPACE_INFO_H
 #define BTRFS_SPACE_INFO_H
 
+#include <trace/events/btrfs.h>
 #include "volumes.h"
 
 /*