From: Liu Bo Date: Thu, 16 Feb 2012 10:34:36 +0000 (+0800) Subject: Btrfs: be less strict on finding next node in clear_extent_bit X-Git-Tag: firefly_0821_release~3680^2~3391^2~8 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=692e5759a43b916f0b66bcb39b2957499992381e;p=firefly-linux-kernel-4.4.55.git 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 --- diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 37259ff5cd71..45ca8f9b0d61 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -582,8 +582,7 @@ next: if (start <= end && next_node) { state = rb_entry(next_node, struct extent_state, rb_node); - if (state->start == start) - goto hit_next; + goto hit_next; } goto search_again;