aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2008-12-02 09:54:17 -0500
committerChris Mason <chris.mason@oracle.com>2008-12-02 09:54:17 -0500
commitb2950863c61bc24cf0f63bc05947d9d50663c4c0 (patch)
tree3005a034713fe86db2d64ab1b21fe8762f6a4b0c /fs/btrfs/extent-tree.c
parent1ffa4f426c002161b7dbd58b297f5d0680e7dd6a (diff)
Btrfs: make things static and include the right headers
Shut up various sparse warnings about symbols that should be either static or have their declarations in scope. Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index a970472eab17..d15638529389 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -74,7 +74,7 @@ static int block_group_bits(struct btrfs_block_group_cache *cache, u64 bits)
74 * this adds the block group to the fs_info rb tree for the block group 74 * this adds the block group to the fs_info rb tree for the block group
75 * cache 75 * cache
76 */ 76 */
77int btrfs_add_block_group_cache(struct btrfs_fs_info *info, 77static int btrfs_add_block_group_cache(struct btrfs_fs_info *info,
78 struct btrfs_block_group_cache *block_group) 78 struct btrfs_block_group_cache *block_group)
79{ 79{
80 struct rb_node **p; 80 struct rb_node **p;
@@ -289,7 +289,7 @@ err:
289/* 289/*
290 * return the block group that starts at or after bytenr 290 * return the block group that starts at or after bytenr
291 */ 291 */
292struct btrfs_block_group_cache *btrfs_lookup_first_block_group(struct 292static struct btrfs_block_group_cache *btrfs_lookup_first_block_group(struct
293 btrfs_fs_info *info, 293 btrfs_fs_info *info,
294 u64 bytenr) 294 u64 bytenr)
295{ 295{
@@ -3445,7 +3445,7 @@ static int noinline cache_drop_leaf_ref(struct btrfs_trans_handle *trans,
3445 return 0; 3445 return 0;
3446} 3446}
3447 3447
3448int drop_snap_lookup_refcount(struct btrfs_root *root, u64 start, u64 len, 3448static int drop_snap_lookup_refcount(struct btrfs_root *root, u64 start, u64 len,
3449 u32 *refs) 3449 u32 *refs)
3450{ 3450{
3451 int ret; 3451 int ret;
@@ -5434,7 +5434,7 @@ static u64 update_block_group_flags(struct btrfs_root *root, u64 flags)
5434 return flags; 5434 return flags;
5435} 5435}
5436 5436
5437int __alloc_chunk_for_shrink(struct btrfs_root *root, 5437static int __alloc_chunk_for_shrink(struct btrfs_root *root,
5438 struct btrfs_block_group_cache *shrink_block_group, 5438 struct btrfs_block_group_cache *shrink_block_group,
5439 int force) 5439 int force)
5440{ 5440{
@@ -5703,8 +5703,8 @@ out:
5703 return ret; 5703 return ret;
5704} 5704}
5705 5705
5706int find_first_block_group(struct btrfs_root *root, struct btrfs_path *path, 5706static int find_first_block_group(struct btrfs_root *root,
5707 struct btrfs_key *key) 5707 struct btrfs_path *path, struct btrfs_key *key)
5708{ 5708{
5709 int ret = 0; 5709 int ret = 0;
5710 struct btrfs_key found_key; 5710 struct btrfs_key found_key;