* [PATCH] btrfs: zoned: make btrfs_get_dev_zone() static
@ 2024-05-08 11:20 fdmanana
2024-05-08 15:20 ` Johannes Thumshirn
2024-05-09 16:53 ` David Sterba
0 siblings, 2 replies; 3+ messages in thread
From: fdmanana @ 2024-05-08 11:20 UTC (permalink / raw)
To: linux-btrfs
From: Filipe Manana <fdmanana@suse.com>
It's not used outside zoned.c, so make it static.
Signed-off-by: Filipe Manana <fdmanana@suse.com>
---
fs/btrfs/zoned.c | 4 ++--
fs/btrfs/zoned.h | 7 -------
2 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/fs/btrfs/zoned.c b/fs/btrfs/zoned.c
index 4cba80b34387..aeab33708702 100644
--- a/fs/btrfs/zoned.c
+++ b/fs/btrfs/zoned.c
@@ -652,8 +652,8 @@ struct btrfs_zoned_device_info *btrfs_clone_dev_zone_info(struct btrfs_device *o
return NULL;
}
-int btrfs_get_dev_zone(struct btrfs_device *device, u64 pos,
- struct blk_zone *zone)
+static int btrfs_get_dev_zone(struct btrfs_device *device, u64 pos,
+ struct blk_zone *zone)
{
unsigned int nr_zones = 1;
int ret;
diff --git a/fs/btrfs/zoned.h b/fs/btrfs/zoned.h
index 77c4321e331f..ff605beb84ef 100644
--- a/fs/btrfs/zoned.h
+++ b/fs/btrfs/zoned.h
@@ -53,8 +53,6 @@ struct btrfs_zoned_device_info {
void btrfs_finish_ordered_zoned(struct btrfs_ordered_extent *ordered);
#ifdef CONFIG_BLK_DEV_ZONED
-int btrfs_get_dev_zone(struct btrfs_device *device, u64 pos,
- struct blk_zone *zone);
int btrfs_get_dev_zone_info_all_devices(struct btrfs_fs_info *fs_info);
int btrfs_get_dev_zone_info(struct btrfs_device *device, bool populate_cache);
void btrfs_destroy_dev_zone_info(struct btrfs_device *device);
@@ -98,11 +96,6 @@ int btrfs_zoned_activate_one_bg(struct btrfs_fs_info *fs_info,
struct btrfs_space_info *space_info, bool do_finish);
void btrfs_check_active_zone_reservation(struct btrfs_fs_info *fs_info);
#else /* CONFIG_BLK_DEV_ZONED */
-static inline int btrfs_get_dev_zone(struct btrfs_device *device, u64 pos,
- struct blk_zone *zone)
-{
- return 0;
-}
static inline int btrfs_get_dev_zone_info_all_devices(struct btrfs_fs_info *fs_info)
{
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] btrfs: zoned: make btrfs_get_dev_zone() static
2024-05-08 11:20 [PATCH] btrfs: zoned: make btrfs_get_dev_zone() static fdmanana
@ 2024-05-08 15:20 ` Johannes Thumshirn
2024-05-09 16:53 ` David Sterba
1 sibling, 0 replies; 3+ messages in thread
From: Johannes Thumshirn @ 2024-05-08 15:20 UTC (permalink / raw)
To: fdmanana@kernel.org, linux-btrfs@vger.kernel.org
Looks good,
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] btrfs: zoned: make btrfs_get_dev_zone() static
2024-05-08 11:20 [PATCH] btrfs: zoned: make btrfs_get_dev_zone() static fdmanana
2024-05-08 15:20 ` Johannes Thumshirn
@ 2024-05-09 16:53 ` David Sterba
1 sibling, 0 replies; 3+ messages in thread
From: David Sterba @ 2024-05-09 16:53 UTC (permalink / raw)
To: fdmanana; +Cc: linux-btrfs
On Wed, May 08, 2024 at 12:20:17PM +0100, fdmanana@kernel.org wrote:
> From: Filipe Manana <fdmanana@suse.com>
>
> It's not used outside zoned.c, so make it static.
>
> Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-05-09 16:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-08 11:20 [PATCH] btrfs: zoned: make btrfs_get_dev_zone() static fdmanana
2024-05-08 15:20 ` Johannes Thumshirn
2024-05-09 16:53 ` David Sterba
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox