diff options
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 7bb28691ed98..e0665488e512 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -3426,20 +3426,7 @@ int close_ctree(struct btrfs_root *root) | |||
3426 | percpu_counter_sum(&fs_info->delalloc_bytes)); | 3426 | percpu_counter_sum(&fs_info->delalloc_bytes)); |
3427 | } | 3427 | } |
3428 | 3428 | ||
3429 | free_extent_buffer(fs_info->extent_root->node); | 3429 | free_root_pointers(fs_info, 1); |
3430 | free_extent_buffer(fs_info->extent_root->commit_root); | ||
3431 | free_extent_buffer(fs_info->tree_root->node); | ||
3432 | free_extent_buffer(fs_info->tree_root->commit_root); | ||
3433 | free_extent_buffer(fs_info->chunk_root->node); | ||
3434 | free_extent_buffer(fs_info->chunk_root->commit_root); | ||
3435 | free_extent_buffer(fs_info->dev_root->node); | ||
3436 | free_extent_buffer(fs_info->dev_root->commit_root); | ||
3437 | free_extent_buffer(fs_info->csum_root->node); | ||
3438 | free_extent_buffer(fs_info->csum_root->commit_root); | ||
3439 | if (fs_info->quota_root) { | ||
3440 | free_extent_buffer(fs_info->quota_root->node); | ||
3441 | free_extent_buffer(fs_info->quota_root->commit_root); | ||
3442 | } | ||
3443 | 3430 | ||
3444 | btrfs_free_block_groups(fs_info); | 3431 | btrfs_free_block_groups(fs_info); |
3445 | 3432 | ||