]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Btrfs: be less strict on finding next node in clear_extent_bit
authorLiu Bo <liubo2009@cn.fujitsu.com>
Thu, 16 Feb 2012 10:34:36 +0000 (18:34 +0800)
committerDavid Sterba <dsterba@suse.cz>
Tue, 21 Feb 2012 15:02:10 +0000 (16:02 +0100)
In clear_extent_bit, it is enough that next node is adjacent in tree level.

Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
fs/btrfs/extent_io.c

index 37259ff5cd718da14792643da76a518d59eda8d2..45ca8f9b0d612f3ec08e34004f2095b3dd035d1c 100644 (file)
@@ -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;