summaryrefslogtreecommitdiff
path: root/ctree.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-03-24 15:03:58 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2008-03-24 15:03:58 -0400
commitd12d4c7203a2ef08ef208a020471290cd1d42c35 (patch)
tree46f81ea3c2a03bf4ec657761a82ece2181318bb9 /ctree.h
parent510be296772108b6d5ae829d76cef2b1a1690262 (diff)
Dynamic chunk allocation
Diffstat (limited to 'ctree.h')
-rw-r--r--ctree.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/ctree.h b/ctree.h
index c8585147..7e305233 100644
--- a/ctree.h
+++ b/ctree.h
@@ -419,10 +419,20 @@ struct btrfs_block_group_item {
__le64 flags;
} __attribute__ ((__packed__));
+struct btrfs_space_info {
+ u64 flags;
+ u64 total_bytes;
+ u64 bytes_used;
+ u64 bytes_pinned;
+ int full;
+ struct list_head list;
+};
+
struct btrfs_block_group_cache {
struct cache_extent cache;
struct btrfs_key key;
struct btrfs_block_group_item item;
+ struct btrfs_space_info *space_info;
u64 pinned;
u64 flags;
int cached;
@@ -466,7 +476,7 @@ struct btrfs_fs_info {
struct list_head dirty_cowonly_roots;
struct list_head devices;
- struct list_head *last_device;
+ struct list_head space_info;
int fp;
int force_system_allocs;
void *priv_data;