aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index ea59ebfa505d..e68ef7b456b0 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -38,6 +38,7 @@
38#include "locking.h" 38#include "locking.h"
39#include "ref-cache.h" 39#include "ref-cache.h"
40#include "tree-log.h" 40#include "tree-log.h"
41#include "free-space-cache.h"
41 42
42static struct extent_io_ops btree_extent_io_ops; 43static struct extent_io_ops btree_extent_io_ops;
43static void end_workqueue_fn(struct btrfs_work *work); 44static void end_workqueue_fn(struct btrfs_work *work);
@@ -1652,6 +1653,10 @@ struct btrfs_root *open_ctree(struct super_block *sb,
1652 mutex_init(&fs_info->cleaner_mutex); 1653 mutex_init(&fs_info->cleaner_mutex);
1653 mutex_init(&fs_info->volume_mutex); 1654 mutex_init(&fs_info->volume_mutex);
1654 mutex_init(&fs_info->tree_reloc_mutex); 1655 mutex_init(&fs_info->tree_reloc_mutex);
1656
1657 btrfs_init_free_cluster(&fs_info->meta_alloc_cluster);
1658 btrfs_init_free_cluster(&fs_info->data_alloc_cluster);
1659
1655 init_waitqueue_head(&fs_info->transaction_throttle); 1660 init_waitqueue_head(&fs_info->transaction_throttle);
1656 init_waitqueue_head(&fs_info->transaction_wait); 1661 init_waitqueue_head(&fs_info->transaction_wait);
1657 init_waitqueue_head(&fs_info->async_submit_wait); 1662 init_waitqueue_head(&fs_info->async_submit_wait);