diff options
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 27cf995564ed..a5269d4a164f 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -1120,6 +1120,7 @@ struct btrfs_fs_info { | |||
1120 | struct btrfs_root *dev_root; | 1120 | struct btrfs_root *dev_root; |
1121 | struct btrfs_root *fs_root; | 1121 | struct btrfs_root *fs_root; |
1122 | struct btrfs_root *csum_root; | 1122 | struct btrfs_root *csum_root; |
1123 | struct btrfs_root *quota_root; | ||
1123 | 1124 | ||
1124 | /* the log root tree is a directory of all the other log roots */ | 1125 | /* the log root tree is a directory of all the other log roots */ |
1125 | struct btrfs_root *log_root_tree; | 1126 | struct btrfs_root *log_root_tree; |
@@ -1374,6 +1375,29 @@ struct btrfs_fs_info { | |||
1374 | #ifdef CONFIG_BTRFS_FS_CHECK_INTEGRITY | 1375 | #ifdef CONFIG_BTRFS_FS_CHECK_INTEGRITY |
1375 | u32 check_integrity_print_mask; | 1376 | u32 check_integrity_print_mask; |
1376 | #endif | 1377 | #endif |
1378 | /* | ||
1379 | * quota information | ||
1380 | */ | ||
1381 | unsigned int quota_enabled:1; | ||
1382 | |||
1383 | /* | ||
1384 | * quota_enabled only changes state after a commit. This holds the | ||
1385 | * next state. | ||
1386 | */ | ||
1387 | unsigned int pending_quota_state:1; | ||
1388 | |||
1389 | /* is qgroup tracking in a consistent state? */ | ||
1390 | u64 qgroup_flags; | ||
1391 | |||
1392 | /* holds configuration and tracking. Protected by qgroup_lock */ | ||
1393 | struct rb_root qgroup_tree; | ||
1394 | spinlock_t qgroup_lock; | ||
1395 | |||
1396 | /* list of dirty qgroups to be written at next commit */ | ||
1397 | struct list_head dirty_qgroups; | ||
1398 | |||
1399 | /* used by btrfs_qgroup_record_ref for an efficient tree traversal */ | ||
1400 | u64 qgroup_seq; | ||
1377 | 1401 | ||
1378 | /* filesystem state */ | 1402 | /* filesystem state */ |
1379 | u64 fs_state; | 1403 | u64 fs_state; |