aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-03-24 15:01:59 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:01 -0400
commit6324fbf334f4586325057197da7752f4ffa409d3 (patch)
treeaf67d90c3a58f48b91f73ac23f753f4f3907a453 /fs/btrfs/ctree.h
parent0b86a832a1f38abec695864ec2eaedc9d2383f1b (diff)
Btrfs: Dynamic chunk and block group allocation
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 1453d995fef..a877105f5c4 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -431,9 +431,19 @@ struct btrfs_block_group_item {
431 __le64 flags; 431 __le64 flags;
432} __attribute__ ((__packed__)); 432} __attribute__ ((__packed__));
433 433
434struct btrfs_space_info {
435 u64 flags;
436 u64 total_bytes;
437 u64 bytes_used;
438 u64 bytes_pinned;
439 int full;
440 struct list_head list;
441};
442
434struct btrfs_block_group_cache { 443struct btrfs_block_group_cache {
435 struct btrfs_key key; 444 struct btrfs_key key;
436 struct btrfs_block_group_item item; 445 struct btrfs_block_group_item item;
446 struct btrfs_space_info *space_info;
437 u64 pinned; 447 u64 pinned;
438 u64 flags; 448 u64 flags;
439 int cached; 449 int cached;
@@ -490,7 +500,7 @@ struct btrfs_fs_info {
490 struct list_head dirty_cowonly_roots; 500 struct list_head dirty_cowonly_roots;
491 501
492 struct list_head devices; 502 struct list_head devices;
493 struct list_head *last_device; 503 struct list_head space_info;
494 spinlock_t delalloc_lock; 504 spinlock_t delalloc_lock;
495 spinlock_t new_trans_lock; 505 spinlock_t new_trans_lock;
496 u64 delalloc_bytes; 506 u64 delalloc_bytes;