aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorArne Jansen <sensille@gmx.net>2011-09-13 06:56:09 -0400
committerJan Schmidt <list.btrfs@jan-o-sch.net>2012-07-10 09:14:44 -0400
commit416ac51da90e98daaac17e1f359a6c5591f7f5bd (patch)
tree44dd89f08ef1fe9a0f90917beb3df1f066bc1901 /fs/btrfs/disk-io.c
parent20897f5c86b9d2b77baea1d48eda7fa4ac217279 (diff)
Btrfs: qgroup state and initialization
Add state to fs_info. Signed-off-by: Arne Jansen <sensille@gmx.net>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 6fc243eccffa..eca054974425 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -2110,6 +2110,13 @@ int open_ctree(struct super_block *sb,
2110 init_rwsem(&fs_info->cleanup_work_sem); 2110 init_rwsem(&fs_info->cleanup_work_sem);
2111 init_rwsem(&fs_info->subvol_sem); 2111 init_rwsem(&fs_info->subvol_sem);
2112 2112
2113 spin_lock_init(&fs_info->qgroup_lock);
2114 fs_info->qgroup_tree = RB_ROOT;
2115 INIT_LIST_HEAD(&fs_info->dirty_qgroups);
2116 fs_info->qgroup_seq = 1;
2117 fs_info->quota_enabled = 0;
2118 fs_info->pending_quota_state = 0;
2119
2113 btrfs_init_free_cluster(&fs_info->meta_alloc_cluster); 2120 btrfs_init_free_cluster(&fs_info->meta_alloc_cluster);
2114 btrfs_init_free_cluster(&fs_info->data_alloc_cluster); 2121 btrfs_init_free_cluster(&fs_info->data_alloc_cluster);
2115 2122