提交 ae9d1285 编写于 作者: C Chris Mason

Btrfs: Fix delalloc account on state deletion

Signed-off-by: NChris Mason <chris.mason@oracle.com>
上级 2f375ab9
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册