diff options
author | David Sterba <dsterba@suse.cz> | 2011-04-20 09:52:26 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2011-05-02 07:57:20 -0400 |
commit | 62a45b60923a576170a1a0c309c240d9f40d193d (patch) | |
tree | f432d4b9973b977855344dbb2abd0419400d56d0 | |
parent | c704005d886cf0bc9bc3974eb009b22fe0da32c7 (diff) |
btrfs: make functions static when possible
Signed-off-by: David Sterba <dsterba@suse.cz>
-rw-r--r-- | fs/btrfs/ctree.c | 4 | ||||
-rw-r--r-- | fs/btrfs/extent-tree.c | 6 | ||||
-rw-r--r-- | fs/btrfs/free-space-cache.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index c60197b36bc8..a36c87db4dc4 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c | |||
@@ -74,8 +74,8 @@ noinline void btrfs_set_path_blocking(struct btrfs_path *p) | |||
74 | * retake all the spinlocks in the path. You can safely use NULL | 74 | * retake all the spinlocks in the path. You can safely use NULL |
75 | * for held | 75 | * for held |
76 | */ | 76 | */ |
77 | noinline void btrfs_clear_path_blocking(struct btrfs_path *p, | 77 | static noinline void btrfs_clear_path_blocking(struct btrfs_path *p, |
78 | struct extent_buffer *held) | 78 | struct extent_buffer *held) |
79 | { | 79 | { |
80 | int i; | 80 | int i; |
81 | 81 | ||
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index cd52f7f556ef..7cdce82e03e7 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -94,7 +94,7 @@ static int block_group_bits(struct btrfs_block_group_cache *cache, u64 bits) | |||
94 | return (cache->flags & bits) == bits; | 94 | return (cache->flags & bits) == bits; |
95 | } | 95 | } |
96 | 96 | ||
97 | void btrfs_get_block_group(struct btrfs_block_group_cache *cache) | 97 | static void btrfs_get_block_group(struct btrfs_block_group_cache *cache) |
98 | { | 98 | { |
99 | atomic_inc(&cache->count); | 99 | atomic_inc(&cache->count); |
100 | } | 100 | } |
@@ -3651,8 +3651,8 @@ static void block_rsv_add_bytes(struct btrfs_block_rsv *block_rsv, | |||
3651 | spin_unlock(&block_rsv->lock); | 3651 | spin_unlock(&block_rsv->lock); |
3652 | } | 3652 | } |
3653 | 3653 | ||
3654 | void block_rsv_release_bytes(struct btrfs_block_rsv *block_rsv, | 3654 | static void block_rsv_release_bytes(struct btrfs_block_rsv *block_rsv, |
3655 | struct btrfs_block_rsv *dest, u64 num_bytes) | 3655 | struct btrfs_block_rsv *dest, u64 num_bytes) |
3656 | { | 3656 | { |
3657 | struct btrfs_space_info *space_info = block_rsv->space_info; | 3657 | struct btrfs_space_info *space_info = block_rsv->space_info; |
3658 | 3658 | ||
diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c index 9e69c6b8409c..d06abe20a729 100644 --- a/fs/btrfs/free-space-cache.c +++ b/fs/btrfs/free-space-cache.c | |||
@@ -1455,8 +1455,8 @@ out: | |||
1455 | return ret; | 1455 | return ret; |
1456 | } | 1456 | } |
1457 | 1457 | ||
1458 | bool try_merge_free_space(struct btrfs_block_group_cache *block_group, | 1458 | static bool try_merge_free_space(struct btrfs_block_group_cache *block_group, |
1459 | struct btrfs_free_space *info, bool update_stat) | 1459 | struct btrfs_free_space *info, bool update_stat) |
1460 | { | 1460 | { |
1461 | struct btrfs_free_space *left_info; | 1461 | struct btrfs_free_space *left_info; |
1462 | struct btrfs_free_space *right_info; | 1462 | struct btrfs_free_space *right_info; |