diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/extent-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 97c12067a4b0..71c8e7049d0c 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -5278,7 +5278,7 @@ alloc: | |||
5278 | spin_lock(&block_group->free_space_ctl->tree_lock); | 5278 | spin_lock(&block_group->free_space_ctl->tree_lock); |
5279 | if (cached && | 5279 | if (cached && |
5280 | block_group->free_space_ctl->free_space < | 5280 | block_group->free_space_ctl->free_space < |
5281 | num_bytes + empty_size) { | 5281 | num_bytes + empty_cluster + empty_size) { |
5282 | spin_unlock(&block_group->free_space_ctl->tree_lock); | 5282 | spin_unlock(&block_group->free_space_ctl->tree_lock); |
5283 | goto loop; | 5283 | goto loop; |
5284 | } | 5284 | } |