aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/free-space-cache.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/free-space-cache.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/free-space-cache.c')
-rw-r--r--fs/btrfs/free-space-cache.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c
index f4926c0f3c8c..09462adfbe33 100644
--- a/fs/btrfs/free-space-cache.c
+++ b/fs/btrfs/free-space-cache.c
@@ -443,7 +443,8 @@ void btrfs_remove_free_space_cache(struct btrfs_block_group_cache *block_group)
443 mutex_unlock(&block_group->alloc_mutex); 443 mutex_unlock(&block_group->alloc_mutex);
444} 444}
445 445
446struct btrfs_free_space *btrfs_find_free_space_offset(struct 446#if 0
447static struct btrfs_free_space *btrfs_find_free_space_offset(struct
447 btrfs_block_group_cache 448 btrfs_block_group_cache
448 *block_group, u64 offset, 449 *block_group, u64 offset,
449 u64 bytes) 450 u64 bytes)
@@ -458,7 +459,7 @@ struct btrfs_free_space *btrfs_find_free_space_offset(struct
458 return ret; 459 return ret;
459} 460}
460 461
461struct btrfs_free_space *btrfs_find_free_space_bytes(struct 462static struct btrfs_free_space *btrfs_find_free_space_bytes(struct
462 btrfs_block_group_cache 463 btrfs_block_group_cache
463 *block_group, u64 offset, 464 *block_group, u64 offset,
464 u64 bytes) 465 u64 bytes)
@@ -472,6 +473,7 @@ struct btrfs_free_space *btrfs_find_free_space_bytes(struct
472 473
473 return ret; 474 return ret;
474} 475}
476#endif
475 477
476struct btrfs_free_space *btrfs_find_free_space(struct btrfs_block_group_cache 478struct btrfs_free_space *btrfs_find_free_space(struct btrfs_block_group_cache
477 *block_group, u64 offset, 479 *block_group, u64 offset,