aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-02-01 15:42:15 -0500
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:00 -0400
commitae9d12853b44f4e0c06732166e8e3399ec01a680 (patch)
tree69bc778e689f6bf7d8fc4a8ea30cdd5088f9adeb /fs/btrfs
parent2f375ab9c55bf22bf77ed9e3082b93e77ea10f55 (diff)
Btrfs: Fix delalloc account on state deletion
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/extent_io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 5f2fbf2054f..5d2fb527fd9 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);