Loading fs/btrfs/extent_map.c +3 −1 Original line number Diff line number Diff line Loading @@ -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); Loading @@ -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; } Loading Loading
fs/btrfs/extent_map.c +3 −1 Original line number Diff line number Diff line Loading @@ -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); Loading @@ -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; } Loading