diff options
Diffstat (limited to 'mkfs')
-rw-r--r-- | mkfs/main.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/mkfs/main.c b/mkfs/main.c index 5b5193d5..ec6b2f85 100644 --- a/mkfs/main.c +++ b/mkfs/main.c @@ -1223,6 +1223,13 @@ raid_groups: goto out; } + ret = cleanup_temp_chunks(fs_info, &allocation, data_profile, + metadata_profile, metadata_profile); + if (ret < 0) { + error("failed to cleanup temporary chunks: %d", ret); + goto out; + } + if (source_dir_set) { trans = btrfs_start_transaction(root, 1); BUG_ON(IS_ERR(trans)); @@ -1245,12 +1252,6 @@ raid_groups: goto out; } } - ret = cleanup_temp_chunks(fs_info, &allocation, data_profile, - metadata_profile, metadata_profile); - if (ret < 0) { - error("failed to cleanup temporary chunks: %d", ret); - goto out; - } if (verbose) { char features_buf[64]; |