Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147771
b: refs/heads/master
c: c604480
h: refs/heads/master
i:
  147769: d26969b
  147767: f241b75
v: v3
  • Loading branch information
Chris Mason committed Jun 10, 2009
1 parent b063cd2 commit b520f32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 3b30c22f64a6bb297719c60e494af1d26563f584
refs/heads/master: c604480171c510c1beeb81b82418e5bc4de8f1ae
3 changes: 2 additions & 1 deletion trunk/fs/btrfs/free-space-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,8 @@ int btrfs_find_space_cluster(struct btrfs_trans_handle *trans,
* we haven't filled the empty size and the window is
* very large. reset and try again
*/
if (next->offset - window_start > (bytes + empty_size) * 2) {
if (next->offset - (last->offset + last->bytes) > 128 * 1024 ||
next->offset - window_start > (bytes + empty_size) * 2) {
entry = next;
window_start = entry->offset;
window_free = entry->bytes;
Expand Down

0 comments on commit b520f32

Please sign in to comment.