All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] btrfs: Remove btrfs_fs_info::total_pinned
@ 2021-06-22 13:27 Nikolay Borisov
  2021-06-22 13:35 ` Johannes Thumshirn
  2021-06-22 22:16 ` David Sterba
  0 siblings, 2 replies; 3+ messages in thread
From: Nikolay Borisov @ 2021-06-22 13:27 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Nikolay Borisov

This got added 14 years ago in 324ae4df00fd ("Btrfs: Add block group pinned accounting back")
but it was not ever used. Subsequently its usage got gradually removed
in  8790d502e440 ("Btrfs: Add support for mirroring across drives") and
11833d66be94 ("Btrfs: improve async block group caching"). Let's remove
it for good!

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
---
 fs/btrfs/ctree.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index d7ef4d7d2c1a..e5e53e592d4f 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -823,8 +823,6 @@ struct btrfs_fs_info {
 	struct kobject *space_info_kobj;
 	struct kobject *qgroups_kobj;
 
-	u64 total_pinned;
-
 	/* used to keep from writing metadata until there is a nice batch */
 	struct percpu_counter dirty_metadata_bytes;
 	struct percpu_counter delalloc_bytes;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] btrfs: Remove btrfs_fs_info::total_pinned
  2021-06-22 13:27 [PATCH] btrfs: Remove btrfs_fs_info::total_pinned Nikolay Borisov
@ 2021-06-22 13:35 ` Johannes Thumshirn
  2021-06-22 22:16 ` David Sterba
  1 sibling, 0 replies; 3+ messages in thread
From: Johannes Thumshirn @ 2021-06-22 13:35 UTC (permalink / raw)
  To: Nikolay Borisov, linux-btrfs

On 22/06/2021 15:27, Nikolay Borisov wrote:
> This got added 14 years ago in 324ae4df00fd ("Btrfs: Add block group pinned accounting back")
> but it was not ever used. Subsequently its usage got gradually removed
> in  8790d502e440 ("Btrfs: Add support for mirroring across drives") and
> 11833d66be94 ("Btrfs: improve async block group caching"). Let's remove
> it for good!
> 
> Signed-off-by: Nikolay Borisov <nborisov@suse.com>
> ---
>  fs/btrfs/ctree.h | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
> index d7ef4d7d2c1a..e5e53e592d4f 100644
> --- a/fs/btrfs/ctree.h
> +++ b/fs/btrfs/ctree.h
> @@ -823,8 +823,6 @@ struct btrfs_fs_info {
>  	struct kobject *space_info_kobj;
>  	struct kobject *qgroups_kobj;
>  
> -	u64 total_pinned;
> -
>  	/* used to keep from writing metadata until there is a nice batch */
>  	struct percpu_counter dirty_metadata_bytes;
>  	struct percpu_counter delalloc_bytes;
> 

So long and thanks for all the fish.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] btrfs: Remove btrfs_fs_info::total_pinned
  2021-06-22 13:27 [PATCH] btrfs: Remove btrfs_fs_info::total_pinned Nikolay Borisov
  2021-06-22 13:35 ` Johannes Thumshirn
@ 2021-06-22 22:16 ` David Sterba
  1 sibling, 0 replies; 3+ messages in thread
From: David Sterba @ 2021-06-22 22:16 UTC (permalink / raw)
  To: Nikolay Borisov; +Cc: linux-btrfs

On Tue, Jun 22, 2021 at 04:27:38PM +0300, Nikolay Borisov wrote:
> This got added 14 years ago in 324ae4df00fd ("Btrfs: Add block group pinned accounting back")
> but it was not ever used. Subsequently its usage got gradually removed
> in  8790d502e440 ("Btrfs: Add support for mirroring across drives") and
> 11833d66be94 ("Btrfs: improve async block group caching"). Let's remove
> it for good!
> 
> Signed-off-by: Nikolay Borisov <nborisov@suse.com>

Added to misc-next, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-22 22:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-22 13:27 [PATCH] btrfs: Remove btrfs_fs_info::total_pinned Nikolay Borisov
2021-06-22 13:35 ` Johannes Thumshirn
2021-06-22 22:16 ` 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.