* [PATCH] btrfs: mark btrfs_put_caching_control static
@ 2024-02-29 8:30 lilijuan
2024-02-29 11:02 ` Johannes Thumshirn
2024-02-29 19:41 ` David Sterba
0 siblings, 2 replies; 3+ messages in thread
From: lilijuan @ 2024-02-29 8:30 UTC (permalink / raw)
To: clm, josef, dsterba; +Cc: linux-btrfs, linux-kernel, pengpeng, Lijuan Li
From: Lijuan Li <lilijuan@iscas.ac.cn>
btrfs_put_caching_control is only used in block-group.c,
so mark it static.
Signed-off-by: Lijuan Li <lilijuan@iscas.ac.cn>
---
fs/btrfs/block-group.c | 2 +-
fs/btrfs/block-group.h | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/fs/btrfs/block-group.c b/fs/btrfs/block-group.c
index 1b4be41495ea..84932d944d51 100644
--- a/fs/btrfs/block-group.c
+++ b/fs/btrfs/block-group.c
@@ -418,7 +418,7 @@ struct btrfs_caching_control *btrfs_get_caching_control(
return ctl;
}
-void btrfs_put_caching_control(struct btrfs_caching_control *ctl)
+static void btrfs_put_caching_control(struct btrfs_caching_control *ctl)
{
if (refcount_dec_and_test(&ctl->count))
kfree(ctl);
diff --git a/fs/btrfs/block-group.h b/fs/btrfs/block-group.h
index c03971f50521..8656b38f1fa5 100644
--- a/fs/btrfs/block-group.h
+++ b/fs/btrfs/block-group.h
@@ -311,7 +311,6 @@ void btrfs_wait_nocow_writers(struct btrfs_block_group *bg);
void btrfs_wait_block_group_cache_progress(struct btrfs_block_group *cache,
u64 num_bytes);
int btrfs_cache_block_group(struct btrfs_block_group *cache, bool wait);
-void btrfs_put_caching_control(struct btrfs_caching_control *ctl);
struct btrfs_caching_control *btrfs_get_caching_control(
struct btrfs_block_group *cache);
int btrfs_add_new_free_space(struct btrfs_block_group *block_group,
--
2.40.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] btrfs: mark btrfs_put_caching_control static
2024-02-29 8:30 [PATCH] btrfs: mark btrfs_put_caching_control static lilijuan
@ 2024-02-29 11:02 ` Johannes Thumshirn
2024-02-29 19:41 ` David Sterba
1 sibling, 0 replies; 3+ messages in thread
From: Johannes Thumshirn @ 2024-02-29 11:02 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_put_caching_control static
2024-02-29 8:30 [PATCH] btrfs: mark btrfs_put_caching_control static lilijuan
2024-02-29 11:02 ` Johannes Thumshirn
@ 2024-02-29 19:41 ` David Sterba
1 sibling, 0 replies; 3+ messages in thread
From: David Sterba @ 2024-02-29 19:41 UTC (permalink / raw)
To: lilijuan; +Cc: clm, josef, dsterba, linux-btrfs, linux-kernel, pengpeng
On Thu, Feb 29, 2024 at 04:30:07PM +0800, lilijuan@iscas.ac.cn wrote:
> From: Lijuan Li <lilijuan@iscas.ac.cn>
>
> btrfs_put_caching_control is only used in block-group.c,
> so mark it static.
>
> Signed-off-by: Lijuan Li <lilijuan@iscas.ac.cn>
Added to for-next, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-02-29 19:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-29 8:30 [PATCH] btrfs: mark btrfs_put_caching_control static lilijuan
2024-02-29 11:02 ` Johannes Thumshirn
2024-02-29 19:41 ` 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.