aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-03-13 11:09:37 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-03-13 11:09:37 -0400
commit9aca1d51323c0291a7358e0728b64ec4f17d1a77 (patch)
tree6e341dfc026c26af2f654bdb5253e3cb2f3ac49a /fs/btrfs/ctree.c
parent234b63a091e1df6bd4261dd7b3a7490074830628 (diff)
Btrfs: make some funcs static
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r--fs/btrfs/ctree.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index c8529b394d5f..bbb632291709 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -34,7 +34,7 @@ void btrfs_release_path(struct btrfs_root *root, struct btrfs_path *p)
34 memset(p, 0, sizeof(*p)); 34 memset(p, 0, sizeof(*p));
35} 35}
36 36
37int btrfs_cow_block(struct btrfs_root *root, 37static int btrfs_cow_block(struct btrfs_root *root,
38 struct btrfs_buffer *buf, 38 struct btrfs_buffer *buf,
39 struct btrfs_buffer *parent, 39 struct btrfs_buffer *parent,
40 int parent_slot, 40 int parent_slot,
@@ -96,7 +96,7 @@ int btrfs_leaf_free_space(struct btrfs_leaf *leaf)
96/* 96/*
97 * compare two keys in a memcmp fashion 97 * compare two keys in a memcmp fashion
98 */ 98 */
99int comp_keys(struct btrfs_disk_key *disk, struct btrfs_key *k2) 99static int comp_keys(struct btrfs_disk_key *disk, struct btrfs_key *k2)
100{ 100{
101 struct btrfs_key k1; 101 struct btrfs_key k1;
102 102
@@ -117,7 +117,7 @@ int comp_keys(struct btrfs_disk_key *disk, struct btrfs_key *k2)
117 return 0; 117 return 0;
118} 118}
119 119
120int check_node(struct btrfs_path *path, int level) 120static int check_node(struct btrfs_path *path, int level)
121{ 121{
122 int i; 122 int i;
123 struct btrfs_node *parent = NULL; 123 struct btrfs_node *parent = NULL;
@@ -146,7 +146,7 @@ int check_node(struct btrfs_path *path, int level)
146 return 0; 146 return 0;
147} 147}
148 148
149int check_leaf(struct btrfs_path *path, int level) 149static int check_leaf(struct btrfs_path *path, int level)
150{ 150{
151 int i; 151 int i;
152 struct btrfs_leaf *leaf = &path->nodes[level]->leaf; 152 struct btrfs_leaf *leaf = &path->nodes[level]->leaf;
@@ -186,7 +186,7 @@ int check_leaf(struct btrfs_path *path, int level)
186 return 0; 186 return 0;
187} 187}
188 188
189int check_block(struct btrfs_path *path, int level) 189static int check_block(struct btrfs_path *path, int level)
190{ 190{
191 if (level == 0) 191 if (level == 0)
192 return check_leaf(path, level); 192 return check_leaf(path, level);
@@ -202,7 +202,7 @@ int check_block(struct btrfs_path *path, int level)
202 * 202 *
203 * slot may point to max if the key is bigger than all of the keys 203 * slot may point to max if the key is bigger than all of the keys
204 */ 204 */
205int generic_bin_search(char *p, int item_size, struct btrfs_key *key, 205static int generic_bin_search(char *p, int item_size, struct btrfs_key *key,
206 int max, int *slot) 206 int max, int *slot)
207{ 207{
208 int low = 0; 208 int low = 0;
@@ -233,7 +233,7 @@ int generic_bin_search(char *p, int item_size, struct btrfs_key *key,
233 * simple bin_search frontend that does the right thing for 233 * simple bin_search frontend that does the right thing for
234 * leaves vs nodes 234 * leaves vs nodes
235 */ 235 */
236int bin_search(struct btrfs_node *c, struct btrfs_key *key, int *slot) 236static int bin_search(struct btrfs_node *c, struct btrfs_key *key, int *slot)
237{ 237{
238 if (btrfs_is_leaf(c)) { 238 if (btrfs_is_leaf(c)) {
239 struct btrfs_leaf *l = (struct btrfs_leaf *)c; 239 struct btrfs_leaf *l = (struct btrfs_leaf *)c;
@@ -250,7 +250,7 @@ int bin_search(struct btrfs_node *c, struct btrfs_key *key, int *slot)
250 return -1; 250 return -1;
251} 251}
252 252
253struct btrfs_buffer *read_node_slot(struct btrfs_root *root, 253static struct btrfs_buffer *read_node_slot(struct btrfs_root *root,
254 struct btrfs_buffer *parent_buf, 254 struct btrfs_buffer *parent_buf,
255 int slot) 255 int slot)
256{ 256{