summaryrefslogtreecommitdiff
path: root/convert/source-fs.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-01-30 10:36:16 +0100
committerDavid Sterba <dsterba@suse.com>2017-03-08 13:00:46 +0100
commitf989881ccd464455f20bfbbe9d32e5a3d13b6360 (patch)
treea44039809bb917f1002006abe68ae8bcc59172f9 /convert/source-fs.h
parentc0acc29c990cbf6e1ea0a2d7565984b0318584a2 (diff)
btrfs-progs: convert: update some forward declarations
Add missing and reorder so they come next to the structures using them. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'convert/source-fs.h')
-rw-r--r--convert/source-fs.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/convert/source-fs.h b/convert/source-fs.h
index 41d1153d..d074eada 100644
--- a/convert/source-fs.h
+++ b/convert/source-fs.h
@@ -21,6 +21,8 @@
#define CONV_IMAGE_SUBVOL_OBJECTID BTRFS_FIRST_FREE_OBJECTID
+struct task_info;
+
struct task_ctx {
u64 max_copy_inodes;
u64 cur_copy_inodes;
@@ -28,9 +30,6 @@ struct task_ctx {
};
struct btrfs_convert_context;
-struct btrfs_root;
-struct btrfs_trans_handle;
-struct btrfs_inode_item;
struct btrfs_convert_operations {
const char *name;
@@ -43,6 +42,10 @@ struct btrfs_convert_operations {
int (*check_state)(struct btrfs_convert_context *cctx);
};
+struct btrfs_trans_handle;
+struct btrfs_root;
+struct btrfs_inode_item;
+
struct blk_iterate_data {
struct btrfs_trans_handle *trans;
struct btrfs_root *root;