diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-02-24 06:24:44 -0500 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-02-24 06:24:44 -0500 |
commit | 5de08d7d50ba535b968d97101ed2ab07c2b8eb7d (patch) | |
tree | 4959748849f43bea2c096fef09970154173c6e9b /fs/btrfs/ctree.h | |
parent | 9a8dd1502de6aa683ae46cf0397e9b6e636416fb (diff) |
Btrfs: Break up ctree.c a little
Extent fixes
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 8c32c0e9267d..b92fbbb5ecd7 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -1,7 +1,7 @@ | |||
1 | #ifndef __CTREE__ | 1 | #ifndef __CTREE__ |
2 | #define __CTREE__ | 2 | #define __CTREE__ |
3 | 3 | ||
4 | #define CTREE_BLOCKSIZE 256 | 4 | #define CTREE_BLOCKSIZE 4096 |
5 | 5 | ||
6 | struct key { | 6 | struct key { |
7 | u64 objectid; | 7 | u64 objectid; |
@@ -81,4 +81,14 @@ struct ctree_path { | |||
81 | struct tree_buffer *nodes[MAX_LEVEL]; | 81 | struct tree_buffer *nodes[MAX_LEVEL]; |
82 | int slots[MAX_LEVEL]; | 82 | int slots[MAX_LEVEL]; |
83 | }; | 83 | }; |
84 | |||
85 | struct tree_buffer *alloc_free_block(struct ctree_root *root); | ||
86 | int free_extent(struct ctree_root *root, u64 blocknr, u64 num_blocks); | ||
87 | int search_slot(struct ctree_root *root, struct key *key, struct ctree_path *p, int ins_len); | ||
88 | void release_path(struct ctree_root *root, struct ctree_path *p); | ||
89 | void init_path(struct ctree_path *p); | ||
90 | int del_item(struct ctree_root *root, struct ctree_path *path); | ||
91 | int insert_item(struct ctree_root *root, struct key *key, void *data, int data_size); | ||
92 | int next_leaf(struct ctree_root *root, struct ctree_path *path); | ||
93 | int leaf_free_space(struct leaf *leaf); | ||
84 | #endif | 94 | #endif |