[PATCH 08/15] btrfs: move fs_info struct declarations to the top of ctree.h

Josef Bacik
2022-09-14T23:05:15Z

In order to make it more straightforward to move the fs_info struct and
it's related structures, move the struct declarations to the top of
ctree.h. This will make it easier to clean up after the fact.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
---
fs/btrfs/ctree.h | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index b9e848a22290..05eb0e994e68 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -46,6 +46,13 @@ struct btrfs_ref;
struct btrfs_bio;
struct btrfs_ioctl_encoded_io_args;

+/* fs_info */
+struct reloc_control;
+struct btrfs_device;
+struct btrfs_fs_devices;
+struct btrfs_balance_control;
+struct btrfs_delayed_root;
+
#define BTRFS_OLDEST_GENERATION 0ULL

#define BTRFS_EMPTY_DIR_SIZE 0
@@ -208,13 +215,6 @@ struct btrfs_discard_ctl {
atomic64_t discard_bytes_saved;
};

-/* fs_info */
-struct reloc_control;
-struct btrfs_device;
-struct btrfs_fs_devices;
-struct btrfs_balance_control;
-struct btrfs_delayed_root;
-
/*
* Exclusive operations (device replace, resize, device add/remove, balance)
*/
--
2.26.3