linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] btrfs: extent-tree.c: Remove unused __btrfs_free_block_rsv()
       [not found] <cover.1532572743.git.misono.tomohiro@jp.fujitsu.com>
@ 2018-07-26  2:40 ` Misono Tomohiro
  2018-07-30 14:15   ` Nikolay Borisov
  2018-08-01 12:55   ` David Sterba
  0 siblings, 2 replies; 3+ messages in thread
From: Misono Tomohiro @ 2018-07-26  2:40 UTC (permalink / raw)
  To: linux-btrfs

There is no user of this function.

This is forgotten to get removed in commit a575ceeb1338
("Btrfs: get rid of unused orphan infrastructure").

Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
---
 fs/btrfs/ctree.h       | 1 -
 fs/btrfs/extent-tree.c | 5 -----
 2 files changed, 6 deletions(-)

diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 9c638931b75e..6506a3e8ccbd 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -2764,7 +2764,6 @@ void btrfs_init_metadata_block_rsv(struct btrfs_fs_info *fs_info,
 				   unsigned short type);
 void btrfs_free_block_rsv(struct btrfs_fs_info *fs_info,
 			  struct btrfs_block_rsv *rsv);
-void __btrfs_free_block_rsv(struct btrfs_block_rsv *rsv);
 int btrfs_block_rsv_add(struct btrfs_root *root,
 			struct btrfs_block_rsv *block_rsv, u64 num_bytes,
 			enum btrfs_reserve_flush_enum flush);
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 16b916a33e56..240535eec2f4 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -5529,11 +5529,6 @@ void btrfs_free_block_rsv(struct btrfs_fs_info *fs_info,
 	kfree(rsv);
 }
 
-void __btrfs_free_block_rsv(struct btrfs_block_rsv *rsv)
-{
-	kfree(rsv);
-}
-
 int btrfs_block_rsv_add(struct btrfs_root *root,
 			struct btrfs_block_rsv *block_rsv, u64 num_bytes,
 			enum btrfs_reserve_flush_enum flush)
-- 
2.14.4



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

* Re: [PATCH] btrfs: extent-tree.c: Remove unused __btrfs_free_block_rsv()
  2018-07-26  2:40 ` [PATCH] btrfs: extent-tree.c: Remove unused __btrfs_free_block_rsv() Misono Tomohiro
@ 2018-07-30 14:15   ` Nikolay Borisov
  2018-08-01 12:55   ` David Sterba
  1 sibling, 0 replies; 3+ messages in thread
From: Nikolay Borisov @ 2018-07-30 14:15 UTC (permalink / raw)
  To: Misono Tomohiro, linux-btrfs



On 26.07.2018 05:40, Misono Tomohiro wrote:
> There is no user of this function.
> 
> This is forgotten to get removed in commit a575ceeb1338
> ("Btrfs: get rid of unused orphan infrastructure").
> 
> Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>

Reviewed-by: Nikolay Borisov <nborisov@suse.com>

> ---
>  fs/btrfs/ctree.h       | 1 -
>  fs/btrfs/extent-tree.c | 5 -----
>  2 files changed, 6 deletions(-)
> 
> diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
> index 9c638931b75e..6506a3e8ccbd 100644
> --- a/fs/btrfs/ctree.h
> +++ b/fs/btrfs/ctree.h
> @@ -2764,7 +2764,6 @@ void btrfs_init_metadata_block_rsv(struct btrfs_fs_info *fs_info,
>  				   unsigned short type);
>  void btrfs_free_block_rsv(struct btrfs_fs_info *fs_info,
>  			  struct btrfs_block_rsv *rsv);
> -void __btrfs_free_block_rsv(struct btrfs_block_rsv *rsv);
>  int btrfs_block_rsv_add(struct btrfs_root *root,
>  			struct btrfs_block_rsv *block_rsv, u64 num_bytes,
>  			enum btrfs_reserve_flush_enum flush);
> diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
> index 16b916a33e56..240535eec2f4 100644
> --- a/fs/btrfs/extent-tree.c
> +++ b/fs/btrfs/extent-tree.c
> @@ -5529,11 +5529,6 @@ void btrfs_free_block_rsv(struct btrfs_fs_info *fs_info,
>  	kfree(rsv);
>  }
>  
> -void __btrfs_free_block_rsv(struct btrfs_block_rsv *rsv)
> -{
> -	kfree(rsv);
> -}
> -
>  int btrfs_block_rsv_add(struct btrfs_root *root,
>  			struct btrfs_block_rsv *block_rsv, u64 num_bytes,
>  			enum btrfs_reserve_flush_enum flush)
> 

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

* Re: [PATCH] btrfs: extent-tree.c: Remove unused __btrfs_free_block_rsv()
  2018-07-26  2:40 ` [PATCH] btrfs: extent-tree.c: Remove unused __btrfs_free_block_rsv() Misono Tomohiro
  2018-07-30 14:15   ` Nikolay Borisov
@ 2018-08-01 12:55   ` David Sterba
  1 sibling, 0 replies; 3+ messages in thread
From: David Sterba @ 2018-08-01 12:55 UTC (permalink / raw)
  To: Misono Tomohiro; +Cc: linux-btrfs

On Thu, Jul 26, 2018 at 11:40:54AM +0900, Misono Tomohiro wrote:
> There is no user of this function.
> 
> This is forgotten to get removed in commit a575ceeb1338
> ("Btrfs: get rid of unused orphan infrastructure").
> 
> Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>

Added to misc-next, thanks.

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

end of thread, other threads:[~2018-08-01 14:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <cover.1532572743.git.misono.tomohiro@jp.fujitsu.com>
2018-07-26  2:40 ` [PATCH] btrfs: extent-tree.c: Remove unused __btrfs_free_block_rsv() Misono Tomohiro
2018-07-30 14:15   ` Nikolay Borisov
2018-08-01 12:55   ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).