btrfs: Remove unused function calc_global_rsv_need_space()
PATCH 1/1 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")
Signed-off-by YueHaibing <[email protected]>
--- fs/btrfs/space-info.c | 5 ----- 1 file changed, 5 deletions(-)
fs/btrfs/space-info.c +0 -5
@@ -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)
Signature · 1 line
2.17.1
Quoted 4 lines · YueHaibing
It is not used since commit
0096420adb03("btrfs: do not account global reserve incan_overcommit")Signed-off-by YueHaibing <[email protected]>
Reviewed-by Anand Jain <[email protected]>
Thanks, Anand
Looks good,
Reviewed-by Johannes Thumshirn <[email protected]>
Quoted 4 lines · YueHaibing
It is not used since commit
0096420adb03("btrfs: do not account global reserve incan_overcommit")Signed-off-by YueHaibing <[email protected]>
Added to misc-next, thanks.