Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128523
b: refs/heads/master
c: 944746e
h: refs/heads/master
i:
  128521: bf308b2
  128519: 6ab19c1
v: v3
  • Loading branch information
Yan authored and Chris Mason committed Sep 25, 2008
1 parent 1dc957f commit aa05919
Show file tree
Hide file tree
Showing 2 changed files with 4 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: b97f9203b4d672c06eca50a1b1b99e4f69e1daf8
refs/heads/master: 944746ec7575258475958d858cdf3a0e4c8f7b9e
4 changes: 3 additions & 1 deletion trunk/fs/btrfs/extent_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,8 @@ u64 find_lock_delalloc_range(struct extent_map_tree *tree,
if (state->state & EXTENT_LOCKED) {
DEFINE_WAIT(wait);
atomic_inc(&state->refs);
prepare_to_wait(&state->wq, &wait,
TASK_UNINTERRUPTIBLE);
write_unlock_irq(&tree->lock);
schedule();
write_lock_irq(&tree->lock);
Expand All @@ -1059,7 +1061,7 @@ u64 find_lock_delalloc_range(struct extent_map_tree *tree,
node = rb_next(node);
if (!node)
break;
total_bytes = state->end - state->start + 1;
total_bytes += state->end - state->start + 1;
if (total_bytes >= max_bytes)
break;
}
Expand Down

0 comments on commit aa05919

Please sign in to comment.