btrfs: add forward declarations and headers, part 1

Do a cleanup in the short 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>
This commit is contained in:
David Sterba
2024-01-27 00:53:06 +01:00
parent e84bfffc4b
commit 22b46bdc5f
29 changed files with 176 additions and 4 deletions

View File

@@ -6,6 +6,8 @@
#ifndef BTRFS_ORDERED_DATA_H
#define BTRFS_ORDERED_DATA_H
#include "async-thread.h"
struct btrfs_ordered_sum {
/*
* Logical start address and length for of the blocks covered by