Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276135
b: refs/heads/master
c: 1b22bad
h: refs/heads/master
i:
  276133: 7f0609d
  276131: 8502f49
  276127: 423b277
v: v3
  • Loading branch information
Alexandre Oliva authored and Chris Mason committed Nov 30, 2011
1 parent 2f60a43 commit c71c85a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: b78d09bceb524ee6481c21b77bda22d766b10e6a
refs/heads/master: 1b22bad779be7fe07242be04749ec969164528b8
6 changes: 2 additions & 4 deletions trunk/fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -5301,10 +5301,8 @@ static noinline int find_free_extent(struct btrfs_trans_handle *trans,
spin_lock(&last_ptr->refill_lock);
if (last_ptr->block_group &&
(last_ptr->block_group->ro ||
!block_group_bits(last_ptr->block_group, data))) {
offset = 0;
!block_group_bits(last_ptr->block_group, data)))
goto refill_cluster;
}

offset = btrfs_alloc_from_cluster(block_group, last_ptr,
num_bytes, search_start);
Expand Down Expand Up @@ -5355,7 +5353,7 @@ static noinline int find_free_extent(struct btrfs_trans_handle *trans,
/* allocate a cluster in this block group */
ret = btrfs_find_space_cluster(trans, root,
block_group, last_ptr,
offset, num_bytes,
search_start, num_bytes,
empty_cluster + empty_size);
if (ret == 0) {
/*
Expand Down

0 comments on commit c71c85a

Please sign in to comment.