summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/fs.h
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2022-10-26 15:08:18 -0400
committerDavid Sterba <dsterba@suse.com>2022-12-05 18:00:45 +0100
commit3683fbbc2314d6721a353f8bf4285a819ea9b512 (patch)
tree2bbaa1ddf60f9b70e5d48d1b2bc0f42634f64818 /fs/btrfs/fs.h
parentb31bed170d5241d4c9e2fc572f31fc15b274a6c9 (diff)
downloadlinux-stable-3683fbbc2314d6721a353f8bf4285a819ea9b512.tar.gz
linux-stable-3683fbbc2314d6721a353f8bf4285a819ea9b512.tar.bz2
linux-stable-3683fbbc2314d6721a353f8bf4285a819ea9b512.zip
btrfs: add dependencies to fs.h and block-rsv.h
There's several structures that are embedded inside of fs_info.h, so if we don't have all the proper includes when we include fs.h we'll get a variety of compile errors. I fixed this by adding a temporary c file that just had #include "fs.h" and then added include files until the compiler stopped complaining. 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>
Diffstat (limited to 'fs/btrfs/fs.h')
-rw-r--r--fs/btrfs/fs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/btrfs/fs.h b/fs/btrfs/fs.h
index d8c931014c2a..a49d11127bf7 100644
--- a/fs/btrfs/fs.h
+++ b/fs/btrfs/fs.h
@@ -3,6 +3,14 @@
#ifndef BTRFS_FS_H
#define BTRFS_FS_H
+#include <linux/fs.h>
+#include <linux/btrfs_tree.h>
+#include <linux/sizes.h>
+#include "extent-io-tree.h"
+#include "extent_map.h"
+#include "async-thread.h"
+#include "block-rsv.h"
+
#define BTRFS_MAX_EXTENT_SIZE SZ_128M
#define BTRFS_OLDEST_GENERATION 0ULL