diff options
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/btrfs.c | 4 | ||||
-rw-r--r-- | fs/btrfs/btrfs.h | 2 | ||||
-rw-r--r-- | fs/btrfs/chunk-map.c | 1 | ||||
-rw-r--r-- | fs/btrfs/compression.c | 1 | ||||
-rw-r--r-- | fs/btrfs/ctree.c | 1 | ||||
-rw-r--r-- | fs/btrfs/dev.c | 3 | ||||
-rw-r--r-- | fs/btrfs/super.c | 5 |
7 files changed, 13 insertions, 4 deletions
diff --git a/fs/btrfs/btrfs.c b/fs/btrfs/btrfs.c index cb7e182742..de16217d0d 100644 --- a/fs/btrfs/btrfs.c +++ b/fs/btrfs/btrfs.c @@ -8,6 +8,7 @@ #include "btrfs.h" #include <config.h> #include <malloc.h> +#include <uuid.h> #include <linux/time.h> struct btrfs_info btrfs_info; @@ -74,7 +75,8 @@ static int readdir_callback(const struct btrfs_root *root, return 0; } -int btrfs_probe(struct blk_desc *fs_dev_desc, disk_partition_t *fs_partition) +int btrfs_probe(struct blk_desc *fs_dev_desc, + struct disk_partition *fs_partition) { btrfs_blk_desc = fs_dev_desc; btrfs_part_info = fs_partition; diff --git a/fs/btrfs/btrfs.h b/fs/btrfs/btrfs.h index 986d078679..25a8cf6a87 100644 --- a/fs/btrfs/btrfs.h +++ b/fs/btrfs/btrfs.h @@ -36,7 +36,7 @@ static inline u64 btrfs_name_hash(const char *name, int len) /* dev.c */ extern struct blk_desc *btrfs_blk_desc; -extern disk_partition_t *btrfs_part_info; +extern struct disk_partition *btrfs_part_info; int btrfs_devread(u64, int, void *); diff --git a/fs/btrfs/chunk-map.c b/fs/btrfs/chunk-map.c index 0c9a659f8f..2e5be65067 100644 --- a/fs/btrfs/chunk-map.c +++ b/fs/btrfs/chunk-map.c @@ -6,6 +6,7 @@ */ #include "btrfs.h" +#include <log.h> #include <malloc.h> struct chunk_map_item { diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index b1884fc15e..59e4a94cb2 100644 --- a/fs/btrfs/compression.c +++ b/fs/btrfs/compression.c @@ -6,6 +6,7 @@ */ #include "btrfs.h" +#include <log.h> #include <malloc.h> #include <linux/lzo.h> #include <linux/zstd.h> diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 7fae383f15..28f98d43ad 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c @@ -6,6 +6,7 @@ */ #include "btrfs.h" +#include <log.h> #include <malloc.h> #include <memalign.h> diff --git a/fs/btrfs/dev.c b/fs/btrfs/dev.c index ada3800f1e..1e5b83235a 100644 --- a/fs/btrfs/dev.c +++ b/fs/btrfs/dev.c @@ -6,11 +6,12 @@ */ #include <common.h> +#include <blk.h> #include <compiler.h> #include <fs_internal.h> struct blk_desc *btrfs_blk_desc; -disk_partition_t *btrfs_part_info; +struct disk_partition *btrfs_part_info; int btrfs_devread(u64 address, int byte_len, void *buf) { diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index b693a073fc..913a4d402e 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -5,9 +5,12 @@ * 2017 Marek Behun, CZ.NIC, marek.behun@nic.cz */ -#include "btrfs.h" +#include <common.h> +#include <log.h> #include <memalign.h> +#include <part.h> #include <linux/compat.h> +#include "btrfs.h" #define BTRFS_SUPER_FLAG_SUPP (BTRFS_HEADER_FLAG_WRITTEN \ | BTRFS_HEADER_FLAG_RELOC \ |