btrfs-progs: convert: update some forward declarations
authorDavid Sterba <dsterba@suse.com>
Mon, 30 Jan 2017 09:36:16 +0000 (10:36 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 8 Mar 2017 12:00:46 +0000 (13:00 +0100)
Add missing and reorder so they come next to the structures using them.

Signed-off-by: David Sterba <dsterba@suse.com>
convert/source-fs.h

index 41d1153..d074ead 100644 (file)
@@ -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;