Commit 737e6e5f authored by Lijuan Li's avatar Lijuan Li Committed by David Sterba

btrfs: mark __btrfs_add_free_space static

__btrfs_add_free_space is only used in free-space-cache.c,
so mark it static.
Reviewed-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: default avatarLijuan Li <lilijuan@iscas.ac.cn>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 3c9da0d5
...@@ -2619,7 +2619,7 @@ static void steal_from_bitmap(struct btrfs_free_space_ctl *ctl, ...@@ -2619,7 +2619,7 @@ static void steal_from_bitmap(struct btrfs_free_space_ctl *ctl,
} }
} }
int __btrfs_add_free_space(struct btrfs_block_group *block_group, static int __btrfs_add_free_space(struct btrfs_block_group *block_group,
u64 offset, u64 bytes, u64 offset, u64 bytes,
enum btrfs_trim_state trim_state) enum btrfs_trim_state trim_state)
{ {
......
...@@ -114,8 +114,6 @@ int btrfs_write_out_cache(struct btrfs_trans_handle *trans, ...@@ -114,8 +114,6 @@ int btrfs_write_out_cache(struct btrfs_trans_handle *trans,
void btrfs_init_free_space_ctl(struct btrfs_block_group *block_group, void btrfs_init_free_space_ctl(struct btrfs_block_group *block_group,
struct btrfs_free_space_ctl *ctl); struct btrfs_free_space_ctl *ctl);
int __btrfs_add_free_space(struct btrfs_block_group *block_group, u64 bytenr,
u64 size, enum btrfs_trim_state trim_state);
int btrfs_add_free_space(struct btrfs_block_group *block_group, int btrfs_add_free_space(struct btrfs_block_group *block_group,
u64 bytenr, u64 size); u64 bytenr, u64 size);
int btrfs_add_free_space_unused(struct btrfs_block_group *block_group, int btrfs_add_free_space_unused(struct btrfs_block_group *block_group,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment