* [PATCH -next] btrfs: Remove unused function calc_global_rsv_need_space()
@ 2020-09-09 13:51 YueHaibing
2020-09-09 15:57 ` Anand Jain
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: YueHaibing @ 2020-09-09 13:51 UTC (permalink / raw)
To: clm, josef, dsterba, nborisov; +Cc: linux-btrfs, linux-kernel, YueHaibing
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(-)
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)
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH -next] btrfs: Remove unused function calc_global_rsv_need_space()
2020-09-09 13:51 [PATCH -next] btrfs: Remove unused function calc_global_rsv_need_space() YueHaibing
@ 2020-09-09 15:57 ` Anand Jain
2020-09-10 8:27 ` Johannes Thumshirn
2020-09-10 15:53 ` David Sterba
2 siblings, 0 replies; 4+ messages in thread
From: Anand Jain @ 2020-09-09 15:57 UTC (permalink / raw)
To: YueHaibing, clm, josef, dsterba, nborisov; +Cc: linux-btrfs, linux-kernel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH -next] btrfs: Remove unused function calc_global_rsv_need_space()
2020-09-09 13:51 [PATCH -next] btrfs: Remove unused function calc_global_rsv_need_space() YueHaibing
2020-09-09 15:57 ` Anand Jain
@ 2020-09-10 8:27 ` Johannes Thumshirn
2020-09-10 15:53 ` David Sterba
2 siblings, 0 replies; 4+ messages in thread
From: Johannes Thumshirn @ 2020-09-10 8:27 UTC (permalink / raw)
To: YueHaibing, clm, josef, dsterba, nborisov; +Cc: linux-btrfs, linux-kernel
Looks good,
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH -next] btrfs: Remove unused function calc_global_rsv_need_space()
2020-09-09 13:51 [PATCH -next] btrfs: Remove unused function calc_global_rsv_need_space() YueHaibing
2020-09-09 15:57 ` Anand Jain
2020-09-10 8:27 ` Johannes Thumshirn
@ 2020-09-10 15:53 ` David Sterba
2 siblings, 0 replies; 4+ messages in thread
From: David Sterba @ 2020-09-10 15:53 UTC (permalink / raw)
To: YueHaibing; +Cc: clm, josef, dsterba, nborisov, linux-btrfs, linux-kernel
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-09-10 19:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-09 13:51 [PATCH -next] btrfs: Remove unused function calc_global_rsv_need_space() YueHaibing
2020-09-09 15:57 ` Anand Jain
2020-09-10 8:27 ` Johannes Thumshirn
2020-09-10 15:53 ` David Sterba
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.