diff options
author | David Sterba <dsterba@suse.com> | 2016-08-31 19:31:57 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-09-21 14:12:38 +0200 |
commit | 2d7c6dc931653c63b171eed483d6247eb745c20d (patch) | |
tree | 7d9a80aeabf7142d2e000a1beaf2e7d52772993d | |
parent | 41fe00e1eb42a411d0eb353f081ae5780f0ed104 (diff) |
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>
-rw-r--r-- | utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |