* [PATCH] block: Unexport blkdev_get_zone_info()
@ 2025-11-05 19:35 Bart Van Assche
2025-11-05 19:45 ` Jens Axboe
2025-11-05 19:47 ` Christoph Hellwig
0 siblings, 2 replies; 7+ messages in thread
From: Bart Van Assche @ 2025-11-05 19:35 UTC (permalink / raw)
To: Jens Axboe
Cc: linux-block, Christoph Hellwig, Damien Le Moal, Bart Van Assche,
Johannes Thumshirn, Hannes Reinecke, Chaitanya Kulkarni,
Martin K. Petersen
Unexport blkdev_get_zone_info() because it has no callers outside the
block layer.
Fixes: f2284eec5053 ("block: introduce blkdev_get_zone_info()")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
---
block/blk-zoned.c | 3 +--
include/linux/blkdev.h | 3 ---
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/block/blk-zoned.c b/block/blk-zoned.c
index bba64b427082..e3972db4bd66 100644
--- a/block/blk-zoned.c
+++ b/block/blk-zoned.c
@@ -914,7 +914,7 @@ static int blkdev_report_zone_fallback(struct block_device *bdev,
*
* Returns 0 on success and a negative error code on failure.
*/
-int blkdev_get_zone_info(struct block_device *bdev, sector_t sector,
+static int blkdev_get_zone_info(struct block_device *bdev, sector_t sector,
struct blk_zone *zone)
{
struct gendisk *disk = bdev->bd_disk;
@@ -1001,7 +1001,6 @@ int blkdev_get_zone_info(struct block_device *bdev, sector_t sector,
return 0;
}
-EXPORT_SYMBOL_GPL(blkdev_get_zone_info);
/**
* blkdev_report_zones_cached - Get cached zones information
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index f0ab02e0a673..7884f86e172f 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -436,9 +436,6 @@ typedef int (*report_zones_cb)(struct blk_zone *zone, unsigned int idx,
int disk_report_zone(struct gendisk *disk, struct blk_zone *zone,
unsigned int idx, struct blk_report_zones_args *args);
-int blkdev_get_zone_info(struct block_device *bdev, sector_t sector,
- struct blk_zone *zone);
-
#define BLK_ALL_ZONES ((unsigned int)-1)
int blkdev_report_zones(struct block_device *bdev, sector_t sector,
unsigned int nr_zones, report_zones_cb cb, void *data);
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH] block: Unexport blkdev_get_zone_info()
2025-11-05 19:35 [PATCH] block: Unexport blkdev_get_zone_info() Bart Van Assche
@ 2025-11-05 19:45 ` Jens Axboe
2025-11-05 19:47 ` Christoph Hellwig
1 sibling, 0 replies; 7+ messages in thread
From: Jens Axboe @ 2025-11-05 19:45 UTC (permalink / raw)
To: Bart Van Assche
Cc: linux-block, Christoph Hellwig, Damien Le Moal,
Johannes Thumshirn, Hannes Reinecke, Chaitanya Kulkarni,
Martin K. Petersen
On Wed, 05 Nov 2025 11:35:53 -0800, Bart Van Assche wrote:
> Unexport blkdev_get_zone_info() because it has no callers outside the
> block layer.
>
>
Applied, thanks!
[1/1] block: Unexport blkdev_get_zone_info()
commit: a6c78e2f9317bed8d3d00fce2188aaace6e948c2
Best regards,
--
Jens Axboe
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH] block: Unexport blkdev_get_zone_info()
2025-11-05 19:35 [PATCH] block: Unexport blkdev_get_zone_info() Bart Van Assche
2025-11-05 19:45 ` Jens Axboe
@ 2025-11-05 19:47 ` Christoph Hellwig
2025-11-05 19:50 ` Jens Axboe
1 sibling, 1 reply; 7+ messages in thread
From: Christoph Hellwig @ 2025-11-05 19:47 UTC (permalink / raw)
To: Bart Van Assche
Cc: Jens Axboe, linux-block, Christoph Hellwig, Damien Le Moal,
Johannes Thumshirn, Hannes Reinecke, Chaitanya Kulkarni,
Martin K. Petersen
On Wed, Nov 05, 2025 at 11:35:53AM -0800, Bart Van Assche wrote:
> Unexport blkdev_get_zone_info() because it has no callers outside the
> block layer.
The commit log for that clearly states we're going to add them,
but it'll wait a merge window to avoid cross-tree dependencies.
I actually have the xfs changes ready right now, I can push them out
if you care about the glory details.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] block: Unexport blkdev_get_zone_info()
2025-11-05 19:47 ` Christoph Hellwig
@ 2025-11-05 19:50 ` Jens Axboe
2025-11-05 19:51 ` Christoph Hellwig
0 siblings, 1 reply; 7+ messages in thread
From: Jens Axboe @ 2025-11-05 19:50 UTC (permalink / raw)
To: Christoph Hellwig, Bart Van Assche
Cc: linux-block, Damien Le Moal, Johannes Thumshirn, Hannes Reinecke,
Chaitanya Kulkarni, Martin K. Petersen
On 11/5/25 12:47 PM, Christoph Hellwig wrote:
> On Wed, Nov 05, 2025 at 11:35:53AM -0800, Bart Van Assche wrote:
>> Unexport blkdev_get_zone_info() because it has no callers outside the
>> block layer.
>
> The commit log for that clearly states we're going to add them,
> but it'll wait a merge window to avoid cross-tree dependencies.
>
> I actually have the xfs changes ready right now, I can push them out
> if you care about the glory details.
That's fair, I'll just drop it then if there are planned additions.
Would've been better to add without the export, but then that'd be
a bit of a mess if multiple folks are going to start to use it and then
all need the export patch.
--
Jens Axboe
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] block: Unexport blkdev_get_zone_info()
2025-11-05 19:50 ` Jens Axboe
@ 2025-11-05 19:51 ` Christoph Hellwig
2025-11-05 19:56 ` Jens Axboe
0 siblings, 1 reply; 7+ messages in thread
From: Christoph Hellwig @ 2025-11-05 19:51 UTC (permalink / raw)
To: Jens Axboe
Cc: Christoph Hellwig, Bart Van Assche, linux-block, Damien Le Moal,
Johannes Thumshirn, Hannes Reinecke, Chaitanya Kulkarni,
Martin K. Petersen
On Wed, Nov 05, 2025 at 12:50:30PM -0700, Jens Axboe wrote:
> On 11/5/25 12:47 PM, Christoph Hellwig wrote:
> > On Wed, Nov 05, 2025 at 11:35:53AM -0800, Bart Van Assche wrote:
> >> Unexport blkdev_get_zone_info() because it has no callers outside the
> >> block layer.
> >
> > The commit log for that clearly states we're going to add them,
> > but it'll wait a merge window to avoid cross-tree dependencies.
> >
> > I actually have the xfs changes ready right now, I can push them out
> > if you care about the glory details.
>
> That's fair, I'll just drop it then if there are planned additions.
> Would've been better to add without the export, but then that'd be
> a bit of a mess if multiple folks are going to start to use it and then
> all need the export patch.
I had that some discussion with Damien. If you want to merge the patch
that's fine, let's just hope we don't have more than one file system
wanting to use it next merge window (I think it would make sense for btrfs
too)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] block: Unexport blkdev_get_zone_info()
2025-11-05 19:51 ` Christoph Hellwig
@ 2025-11-05 19:56 ` Jens Axboe
2025-11-06 12:08 ` Christoph Hellwig
0 siblings, 1 reply; 7+ messages in thread
From: Jens Axboe @ 2025-11-05 19:56 UTC (permalink / raw)
To: Christoph Hellwig
Cc: Bart Van Assche, linux-block, Damien Le Moal, Johannes Thumshirn,
Hannes Reinecke, Chaitanya Kulkarni, Martin K. Petersen
On 11/5/25 12:51 PM, Christoph Hellwig wrote:
> On Wed, Nov 05, 2025 at 12:50:30PM -0700, Jens Axboe wrote:
>> On 11/5/25 12:47 PM, Christoph Hellwig wrote:
>>> On Wed, Nov 05, 2025 at 11:35:53AM -0800, Bart Van Assche wrote:
>>>> Unexport blkdev_get_zone_info() because it has no callers outside the
>>>> block layer.
>>>
>>> The commit log for that clearly states we're going to add them,
>>> but it'll wait a merge window to avoid cross-tree dependencies.
>>>
>>> I actually have the xfs changes ready right now, I can push them out
>>> if you care about the glory details.
>>
>> That's fair, I'll just drop it then if there are planned additions.
>> Would've been better to add without the export, but then that'd be
>> a bit of a mess if multiple folks are going to start to use it and then
>> all need the export patch.
>
> I had that some discussion with Damien. If you want to merge the patch
> that's fine, let's just hope we don't have more than one file system
> wanting to use it next merge window (I think it would make sense for btrfs
> too)
Let's just defer if there are planned users for 6.19. Once we're in
the middle of that release and if no users have been added, then we
can kill it.
--
Jens Axboe
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] block: Unexport blkdev_get_zone_info()
2025-11-05 19:56 ` Jens Axboe
@ 2025-11-06 12:08 ` Christoph Hellwig
0 siblings, 0 replies; 7+ messages in thread
From: Christoph Hellwig @ 2025-11-06 12:08 UTC (permalink / raw)
To: Jens Axboe
Cc: Christoph Hellwig, Bart Van Assche, linux-block, Damien Le Moal,
Johannes Thumshirn, Hannes Reinecke, Chaitanya Kulkarni,
Martin K. Petersen
On Wed, Nov 05, 2025 at 12:56:49PM -0700, Jens Axboe wrote:
> Let's just defer if there are planned users for 6.19. Once we're in
> the middle of that release and if no users have been added, then we
> can kill it.
Yes, if the users don't materialize in the next merge window this should
absolutely go away.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-11-06 12:08 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-05 19:35 [PATCH] block: Unexport blkdev_get_zone_info() Bart Van Assche
2025-11-05 19:45 ` Jens Axboe
2025-11-05 19:47 ` Christoph Hellwig
2025-11-05 19:50 ` Jens Axboe
2025-11-05 19:51 ` Christoph Hellwig
2025-11-05 19:56 ` Jens Axboe
2025-11-06 12:08 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox