diff options
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/extent_io.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 5f2fbf2054f2..5d2fb527fd96 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c | |||
@@ -396,6 +396,7 @@ static int clear_state_bit(struct extent_io_tree *tree, | |||
396 | wake_up(&state->wq); | 396 | wake_up(&state->wq); |
397 | if (delete || state->state == 0) { | 397 | if (delete || state->state == 0) { |
398 | if (state->tree) { | 398 | if (state->tree) { |
399 | clear_state_cb(tree, state, state->state); | ||
399 | if (tree->last == state) | 400 | if (tree->last == state) |
400 | tree->last = NULL; | 401 | tree->last = NULL; |
401 | rb_erase(&state->rb_node, &tree->state); | 402 | rb_erase(&state->rb_node, &tree->state); |