diff --git a/convert/main.c b/convert/main.c index aa0d805b..2f6ec428 100644 --- a/convert/main.c +++ b/convert/main.c @@ -43,6 +43,14 @@ #include "convert/source-fs.h" #include "fsfeatures.h" +const struct btrfs_convert_operations ext2_convert_ops; + +static const struct btrfs_convert_operations *convert_operations[] = { +#if BTRFSCONVERT_EXT2 + &ext2_convert_ops, +#endif +}; + static void *print_copied_inodes(void *p) { struct task_ctx *priv = p; @@ -1145,14 +1153,6 @@ static int prepare_system_chunk_sb(struct btrfs_super_block *super) return 0; } -const struct btrfs_convert_operations ext2_convert_ops; - -static const struct btrfs_convert_operations *convert_operations[] = { -#if BTRFSCONVERT_EXT2 - &ext2_convert_ops, -#endif -}; - static int convert_open_fs(const char *devname, struct btrfs_convert_context *cctx) {