diff mbox series

[-next] btrfs: Remove unused function calc_global_rsv_need_space()

Message ID 20200909135142.27352-1-yuehaibing@huawei.com (mailing list archive)
State New, archived
Headers show
Series [-next] btrfs: Remove unused function calc_global_rsv_need_space() | expand

Commit Message

Yue Haibing Sept. 9, 2020, 1:51 p.m. UTC
It is not used since commit 0096420adb03 ("btrfs: do not
account global reserve in can_overcommit")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 fs/btrfs/space-info.c | 5 -----
 1 file changed, 5 deletions(-)

Comments

Anand Jain Sept. 9, 2020, 3:57 p.m. UTC | #1
On 9/9/20 9:51 pm, YueHaibing wrote:
> It is not used since commit 0096420adb03 ("btrfs: do not
> account global reserve in can_overcommit")
> 
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>

Reviewed-by: Anand Jain <anand.jain@oracle.com>

Thanks, Anand
Johannes Thumshirn Sept. 10, 2020, 8:27 a.m. UTC | #2
Looks good,
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
David Sterba Sept. 10, 2020, 3:53 p.m. UTC | #3
On Wed, Sep 09, 2020 at 09:51:42PM +0800, YueHaibing wrote:
> It is not used since commit 0096420adb03 ("btrfs: do not
> account global reserve in can_overcommit")
> 
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>

Added to misc-next, thanks.
diff mbox series

Patch

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)