linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] btrfs: mark __btrfs_add_free_space static
@ 2024-02-06  1:56 lilijuan
  2024-02-06 10:18 ` Johannes Thumshirn
  2024-02-06 13:47 ` David Sterba
  0 siblings, 2 replies; 3+ messages in thread
From: lilijuan @ 2024-02-06  1:56 UTC (permalink / raw)
  To: clm, josef, dsterba; +Cc: linux-btrfs, linux-kernel, pengpeng, Lijuan Li

From: Lijuan Li <lilijuan@iscas.ac.cn>

__btrfs_add_free_space is only used in free-space-cache.c,
so mark it static.

Signed-off-by: Lijuan Li <lilijuan@iscas.ac.cn>
---
 fs/btrfs/free-space-cache.c | 2 +-
 fs/btrfs/free-space-cache.h | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c
index d372c7ce0e6b..812994f456e4 100644
--- a/fs/btrfs/free-space-cache.c
+++ b/fs/btrfs/free-space-cache.c
@@ -2621,7 +2621,7 @@ static void steal_from_bitmap(struct btrfs_free_space_ctl *ctl,
 	}
 }
 
-int __btrfs_add_free_space(struct btrfs_block_group *block_group,
+static int __btrfs_add_free_space(struct btrfs_block_group *block_group,
 			   u64 offset, u64 bytes,
 			   enum btrfs_trim_state trim_state)
 {
diff --git a/fs/btrfs/free-space-cache.h b/fs/btrfs/free-space-cache.h
index 33b4da3271b1..d9b7fbc2008a 100644
--- a/fs/btrfs/free-space-cache.h
+++ b/fs/btrfs/free-space-cache.h
@@ -114,8 +114,6 @@ int btrfs_write_out_cache(struct btrfs_trans_handle *trans,
 
 void btrfs_init_free_space_ctl(struct btrfs_block_group *block_group,
 			       struct btrfs_free_space_ctl *ctl);
-int __btrfs_add_free_space(struct btrfs_block_group *block_group, u64 bytenr,
-			   u64 size, enum btrfs_trim_state trim_state);
 int btrfs_add_free_space(struct btrfs_block_group *block_group,
 			 u64 bytenr, u64 size);
 int btrfs_add_free_space_unused(struct btrfs_block_group *block_group,
-- 
2.40.1


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

* Re: [PATCH] btrfs: mark __btrfs_add_free_space static
  2024-02-06  1:56 [PATCH] btrfs: mark __btrfs_add_free_space static lilijuan
@ 2024-02-06 10:18 ` Johannes Thumshirn
  2024-02-06 13:47 ` David Sterba
  1 sibling, 0 replies; 3+ messages in thread
From: Johannes Thumshirn @ 2024-02-06 10:18 UTC (permalink / raw)
  To: lilijuan, clm, josef, dsterba; +Cc: linux-btrfs, linux-kernel, pengpeng

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>

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

* Re: [PATCH] btrfs: mark __btrfs_add_free_space static
  2024-02-06  1:56 [PATCH] btrfs: mark __btrfs_add_free_space static lilijuan
  2024-02-06 10:18 ` Johannes Thumshirn
@ 2024-02-06 13:47 ` David Sterba
  1 sibling, 0 replies; 3+ messages in thread
From: David Sterba @ 2024-02-06 13:47 UTC (permalink / raw)
  To: lilijuan; +Cc: clm, josef, dsterba, linux-btrfs, linux-kernel, pengpeng

On Tue, Feb 06, 2024 at 09:56:00AM +0800, lilijuan@iscas.ac.cn wrote:
> From: Lijuan Li <lilijuan@iscas.ac.cn>
> 
> __btrfs_add_free_space is only used in free-space-cache.c,
> so mark it static.
> 
> Signed-off-by: Lijuan Li <lilijuan@iscas.ac.cn>

Reviewed-by: David Sterba <dsterba@suse.com>

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

end of thread, other threads:[~2024-02-06 13:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-06  1:56 [PATCH] btrfs: mark __btrfs_add_free_space static lilijuan
2024-02-06 10:18 ` Johannes Thumshirn
2024-02-06 13:47 ` 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).