aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 76fd5d7146e1..593011e5d455 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -1747,6 +1747,7 @@ again:
1747 search_start, search_end, hint_byte, ins, 1747 search_start, search_end, hint_byte, ins,
1748 trans->alloc_exclude_start, 1748 trans->alloc_exclude_start,
1749 trans->alloc_exclude_nr, data); 1749 trans->alloc_exclude_nr, data);
1750
1750 if (ret == -ENOSPC && num_bytes > min_alloc_size) { 1751 if (ret == -ENOSPC && num_bytes > min_alloc_size) {
1751 num_bytes = num_bytes >> 1; 1752 num_bytes = num_bytes >> 1;
1752 num_bytes = max(num_bytes, min_alloc_size); 1753 num_bytes = max(num_bytes, min_alloc_size);