Fix a typo in btrfs-progs/extent_map.c
authorYan <yanzheng@21cn.com>
Mon, 14 Jan 2008 18:35:00 +0000 (13:35 -0500)
committerDavid Woodhouse <dwmw2@hera.kernel.org>
Mon, 14 Jan 2008 18:35:00 +0000 (13:35 -0500)
Hello,

update_extent_state is called with wrong parameter in merge_state.

extent_map.c

index 8a6b071..c797926 100644 (file)
@@ -123,7 +123,7 @@ static int merge_state(struct extent_map_tree *tree,
                if (other->start == state->end + 1 &&
                    other->state == state->state) {
                        other->start = state->start;
-                       update_extent_state(state);
+                       update_extent_state(other);
                        remove_cache_extent(&tree->state, &state->cache_node);
                        free_extent_state(state);
                }