projects
/
platform
/
upstream
/
btrfs-progs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
btrfs-progs: switch BUG_ON to ASSERT in reserve_free_space
[platform/upstream/btrfs-progs.git]
/
utils.c
diff --git
a/utils.c
b/utils.c
index
45fde2e
..
79ca6ac
100644
(file)
--- a/
utils.c
+++ b/
utils.c
@@
-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) {