aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/free-space-cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/free-space-cache.c')
-rw-r--r--fs/btrfs/free-space-cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c
index fa1a8140bfb5..37b2b89a28f6 100644
--- a/fs/btrfs/free-space-cache.c
+++ b/fs/btrfs/free-space-cache.c
@@ -1567,7 +1567,8 @@ again:
1567 search_bytes = ctl->unit; 1567 search_bytes = ctl->unit;
1568 search_bytes = min(search_bytes, end - search_start + 1); 1568 search_bytes = min(search_bytes, end - search_start + 1);
1569 ret = search_bitmap(ctl, bitmap_info, &search_start, &search_bytes); 1569 ret = search_bitmap(ctl, bitmap_info, &search_start, &search_bytes);
1570 BUG_ON(ret < 0 || search_start != *offset); 1570 if (ret < 0 || search_start != *offset)
1571 return -EINVAL;
1571 1572
1572 /* We may have found more bits than what we need */ 1573 /* We may have found more bits than what we need */
1573 search_bytes = min(search_bytes, *bytes); 1574 search_bytes = min(search_bytes, *bytes);
@@ -1973,7 +1974,6 @@ again:
1973 re_search = true; 1974 re_search = true;
1974 goto again; 1975 goto again;
1975 } 1976 }
1976 BUG_ON(ret); /* logic error */
1977out_lock: 1977out_lock:
1978 spin_unlock(&ctl->tree_lock); 1978 spin_unlock(&ctl->tree_lock);
1979out: 1979out: