diff options
author | YueHaibing <yuehaibing@huawei.com> | 2020-09-09 16:51:42 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-10-07 13:13:16 +0300 |
commit | a31a5876fae21c602f14686f1e8985f98b153d2b (patch) | |
tree | c7c7d246f04a0e21b895d0d7150a30237983dcf5 /fs/btrfs/space-info.c | |
parent | 0725c0c9351d9854a61bc68f0a59d9f91d75abbd (diff) | |
download | linux-a31a5876fae21c602f14686f1e8985f98b153d2b.tar.xz |
btrfs: remove unused function calc_global_rsv_need_space()
It is not used since commit 0096420adb03 ("btrfs: do not
account global reserve in can_overcommit").
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/space-info.c')
-rw-r--r-- | fs/btrfs/space-info.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/btrfs/space-info.c b/fs/btrfs/space-info.c index b733718f45d3..0f16a2ce5401 100644 --- a/fs/btrfs/space-info.c +++ b/fs/btrfs/space-info.c @@ -301,11 +301,6 @@ struct btrfs_space_info *btrfs_find_space_info(struct btrfs_fs_info *info, return NULL; } -static inline u64 calc_global_rsv_need_space(struct btrfs_block_rsv *global) -{ - return (global->size << 1); -} - static u64 calc_available_free_space(struct btrfs_fs_info *fs_info, struct btrfs_space_info *space_info, enum btrfs_reserve_flush_enum flush) |