btrfs-progs: switch BUG_ON to ASSERT in reserve_free_space

That's not a real error condition, catch bad function usge.

Signed-off-by: David Sterba <dsterba@suse.com>
master
David Sterba 2016-08-31 19:31:57 +02:00
parent 41fe00e1eb
commit 2d7c6dc931
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ static int reserve_free_space(struct cache_tree *free_tree, u64 len,
struct cache_extent *cache;
int found = 0;
BUG_ON(!ret_start);
ASSERT(ret_start != NULL);
cache = first_cache_extent(free_tree);
while (cache) {
if (cache->size > len) {