From: YueHaibing Date: Wed, 9 Sep 2020 13:51:42 +0000 (+0800) Subject: btrfs: remove unused function calc_global_rsv_need_space() X-Git-Tag: v5.10-rc1~178^2~57 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a31a5876fae21c602f14686f1e8985f98b153d2b;p=thirdparty%2Flinux.git 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 Reviewed-by: Johannes Thumshirn Signed-off-by: YueHaibing Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/space-info.c b/fs/btrfs/space-info.c index b733718f45d34..0f16a2ce54015 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)