Przeglądaj źródła

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>
Liu Bo 13 lat temu
rodzic
commit
692e5759a4
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      fs/btrfs/extent_io.c

+ 1 - 2
fs/btrfs/extent_io.c

@@ -582,8 +582,7 @@ next:
 	if (start <= end && next_node) {
 	if (start <= end && next_node) {
 		state = rb_entry(next_node, struct extent_state,
 		state = rb_entry(next_node, struct extent_state,
 				 rb_node);
 				 rb_node);
-		if (state->start == start)
-			goto hit_next;
+		goto hit_next;
 	}
 	}
 	goto search_again;
 	goto search_again;