mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
Btrfs: Fix delalloc account on state deletion
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
2f375ab9c5
commit
ae9d12853b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user