aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/zoned.h
diff options
context:
space:
mode:
authorGravatar David Sterba <dsterba@suse.com> 2024-01-27 03:19:56 +0100
committerGravatar David Sterba <dsterba@suse.com> 2024-03-04 16:24:49 +0100
commit602035d7fecf4d00c75c2ca5b956fa44136c3b86 (patch)
tree4206fa20eb1021496765430edab2b207ec8d39df /fs/btrfs/zoned.h
parentbtrfs: add forward declarations and headers, part 1 (diff)
downloadlinux-602035d7fecf4d00c75c2ca5b956fa44136c3b86.tar.gz
linux-602035d7fecf4d00c75c2ca5b956fa44136c3b86.tar.bz2
linux-602035d7fecf4d00c75c2ca5b956fa44136c3b86.zip
btrfs: add forward declarations and headers, part 2
Do a cleanup in more headers: - add forward declarations for types referenced by pointers - add includes when types need them This fixes potential compilation problems if the headers are reordered or the missing includes are not provided indirectly. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/zoned.h')
-rw-r--r--fs/btrfs/zoned.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/fs/btrfs/zoned.h b/fs/btrfs/zoned.h
index f573bda496fb..77c4321e331f 100644
--- a/fs/btrfs/zoned.h
+++ b/fs/btrfs/zoned.h
@@ -4,12 +4,27 @@
#define BTRFS_ZONED_H
#include <linux/types.h>
+#include <linux/atomic.h>
#include <linux/blkdev.h>
+#include <linux/blkzoned.h>
+#include <linux/errno.h>
+#include <linux/spinlock.h>
+#include <linux/mutex.h>
#include "messages.h"
#include "volumes.h"
#include "disk-io.h"
#include "block-group.h"
#include "btrfs_inode.h"
+#include "fs.h"
+
+struct block_device;
+struct extent_buffer;
+struct btrfs_bio;
+struct btrfs_ordered_extent;
+struct btrfs_fs_info;
+struct btrfs_space_info;
+struct btrfs_eb_write_context;
+struct btrfs_fs_devices;
#define BTRFS_DEFAULT_RECLAIM_THRESH (75)