From: Chris Mason Date: Fri, 1 Feb 2008 20:42:15 +0000 (-0500) Subject: Btrfs: Fix delalloc account on state deletion X-Git-Tag: v2.6.29-rc1~27^2~9^2~55^2~56^2~30^2~299 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=ae9d12853b44f4e0c06732166e8e3399ec01a680;p=linux.git Btrfs: Fix delalloc account on state deletion Signed-off-by: Chris Mason --- 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, 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);