Commit ae9d1285 authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: Fix delalloc account on state deletion

parent 2f375ab9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -396,6 +396,7 @@ static int clear_state_bit(struct extent_io_tree *tree,
		wake_up(&state->wq);
	if (delete || state->state == 0) {
		if (state->tree) {
			clear_state_cb(tree, state, state->state);
			if (tree->last == state)
				tree->last = NULL;
			rb_erase(&state->rb_node, &tree->state);