Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276137
b: refs/heads/master
c: be064d1
h: refs/heads/master
i:
  276135: c71c85a
v: v3
  • Loading branch information
Alexandre Oliva authored and Chris Mason committed Nov 30, 2011
1 parent edf5df4 commit ae081d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 425d83156ca27f74e2cc3f370138038c3c8947f8
refs/heads/master: be064d113906f04ea13088a8260e1e68ae0a4050
6 changes: 3 additions & 3 deletions trunk/fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -5299,9 +5299,9 @@ static noinline int find_free_extent(struct btrfs_trans_handle *trans,
* people trying to start a new cluster
*/
spin_lock(&last_ptr->refill_lock);
if (last_ptr->block_group &&
(last_ptr->block_group->ro ||
!block_group_bits(last_ptr->block_group, data)))
if (!last_ptr->block_group ||
last_ptr->block_group->ro ||
!block_group_bits(last_ptr->block_group, data))
goto refill_cluster;

offset = btrfs_alloc_from_cluster(block_group, last_ptr,
Expand Down

0 comments on commit ae081d4

Please sign in to comment.