Skip to content

Commit a31a587

Browse files
YueHaibingkdave
authored andcommitted
btrfs: remove unused function calc_global_rsv_need_space()
It is not used since commit 0096420 ("btrfs: do not account global reserve in can_overcommit"). Reviewed-by: Anand Jain <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: YueHaibing <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 0725c0c commit a31a587

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

fs/btrfs/space-info.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -301,11 +301,6 @@ struct btrfs_space_info *btrfs_find_space_info(struct btrfs_fs_info *info,
301301
return NULL;
302302
}
303303

304-
static inline u64 calc_global_rsv_need_space(struct btrfs_block_rsv *global)
305-
{
306-
return (global->size << 1);
307-
}
308-
309304
static u64 calc_available_free_space(struct btrfs_fs_info *fs_info,
310305
struct btrfs_space_info *space_info,
311306
enum btrfs_reserve_flush_enum flush)

0 commit comments

Comments
 (0)