aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
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/extent_io.c
parent2f375ab9c55bf22bf77ed9e3082b93e77ea10f55 (diff)
Btrfs: Fix delalloc account on state deletion
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-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 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);