mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 12:44:11 +08:00
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: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Lijuan Li <lilijuan@iscas.ac.cn> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
3c9da0d55c
commit
737e6e5f0c
@ -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,
|
||||
enum btrfs_trim_state trim_state)
|
||||
{
|
||||
|
@ -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,
|
||||
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,
|
||||
u64 bytenr, u64 size);
|
||||
int btrfs_add_free_space_unused(struct btrfs_block_group *block_group,
|
||||
|
Loading…
Reference in New Issue
Block a user