Skip to content

Commit 692e575

Browse files
liubkdave
authored andcommitted
Btrfs: be less strict on finding next node in clear_extent_bit
In clear_extent_bit, it is enough that next node is adjacent in tree level. Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
1 parent d9b0218 commit 692e575

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/btrfs/extent_io.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,7 @@ int clear_extent_bit(struct extent_io_tree *tree, u64 start, u64 end,
582582
if (start <= end && next_node) {
583583
state = rb_entry(next_node, struct extent_state,
584584
rb_node);
585-
if (state->start == start)
586-
goto hit_next;
585+
goto hit_next;
587586
}
588587
goto search_again;
589588

0 commit comments

Comments
 (0)