diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-05-06 10:15:01 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-05-06 10:15:01 -0400 |
commit | be74417553f4b2ee46be2088007a674ef2f02330 (patch) | |
tree | f3c3e0f3d15b2c638699f3c8305a090c88e16c8b /fs/btrfs/ctree.h | |
parent | be08c1b9f8e679d45e086728445ac36cf250e92e (diff) |
Btrfs: more allocator enhancements
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 179a046ce5a4..086e7dea3c92 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -257,6 +257,8 @@ struct btrfs_block_group_cache { | |||
257 | struct btrfs_block_group_item item; | 257 | struct btrfs_block_group_item item; |
258 | u64 first_free; | 258 | u64 first_free; |
259 | u64 last_alloc; | 259 | u64 last_alloc; |
260 | u64 pinned; | ||
261 | int data; | ||
260 | }; | 262 | }; |
261 | 263 | ||
262 | struct crypto_hash; | 264 | struct crypto_hash; |
@@ -264,12 +266,12 @@ struct btrfs_fs_info { | |||
264 | struct btrfs_root *extent_root; | 266 | struct btrfs_root *extent_root; |
265 | struct btrfs_root *tree_root; | 267 | struct btrfs_root *tree_root; |
266 | struct btrfs_root *dev_root; | 268 | struct btrfs_root *dev_root; |
267 | struct btrfs_block_group_cache *block_group_cache; | ||
268 | struct radix_tree_root fs_roots_radix; | 269 | struct radix_tree_root fs_roots_radix; |
269 | struct radix_tree_root pending_del_radix; | 270 | struct radix_tree_root pending_del_radix; |
270 | struct radix_tree_root pinned_radix; | 271 | struct radix_tree_root pinned_radix; |
271 | struct radix_tree_root dev_radix; | 272 | struct radix_tree_root dev_radix; |
272 | struct radix_tree_root block_group_radix; | 273 | struct radix_tree_root block_group_radix; |
274 | struct radix_tree_root block_group_data_radix; | ||
273 | 275 | ||
274 | u64 extent_tree_insert[BTRFS_MAX_LEVEL * 3]; | 276 | u64 extent_tree_insert[BTRFS_MAX_LEVEL * 3]; |
275 | int extent_tree_insert_nr; | 277 | int extent_tree_insert_nr; |
@@ -1072,7 +1074,8 @@ static inline void btrfs_mark_buffer_dirty(struct buffer_head *bh) | |||
1072 | /* extent-tree.c */ | 1074 | /* extent-tree.c */ |
1073 | struct btrfs_block_group_cache *btrfs_find_block_group(struct btrfs_root *root, | 1075 | struct btrfs_block_group_cache *btrfs_find_block_group(struct btrfs_root *root, |
1074 | struct btrfs_block_group_cache | 1076 | struct btrfs_block_group_cache |
1075 | *hint, int data); | 1077 | *hint, u64 search_start, |
1078 | int data); | ||
1076 | int btrfs_inc_root_ref(struct btrfs_trans_handle *trans, | 1079 | int btrfs_inc_root_ref(struct btrfs_trans_handle *trans, |
1077 | struct btrfs_root *root); | 1080 | struct btrfs_root *root); |
1078 | struct buffer_head *btrfs_alloc_free_block(struct btrfs_trans_handle *trans, | 1081 | struct buffer_head *btrfs_alloc_free_block(struct btrfs_trans_handle *trans, |