summaryrefslogtreecommitdiff
path: root/convert/common.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-02-01 15:41:06 +0100
committerDavid Sterba <dsterba@suse.com>2017-03-08 13:00:46 +0100
commitca92914804be310293c0b447de9fcd79ffb728ce (patch)
tree053853ca9216f28a824a775f32d37a563cdd48f0 /convert/common.c
parent52319450e70828181d1dd92f9cca1bc38611038e (diff)
btrfs-progs: convert: improve assert in make_convert_btrfs
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'convert/common.c')
-rw-r--r--convert/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/convert/common.c b/convert/common.c
index d37d2b26..d87d75ee 100644
--- a/convert/common.c
+++ b/convert/common.c
@@ -796,8 +796,8 @@ int make_convert_btrfs(int fd, struct btrfs_mkfs_config *cfg,
u64 csum_bytenr;
int ret;
- /* Shouldn't happen */
- BUG_ON(cache_tree_empty(used_space));
+ /* Source filesystem must be opened, checked and analyzed in advance */
+ ASSERT(!cache_tree_empty(used_space));
/*
* reserve space for temporary superblock first