Skip to content

Commit 9ba5dcc

Browse files
Dr. David Alan Gilbertaxboe
authored andcommitted
block: Remove unused blk_limits_io_{min,opt}
blk_limits_io_min and blk_limits_io_opt are unused since the recent commit 0a94a46 ("dm: stop using blk_limits_io_{min,opt}") Remove them. Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Link: https://lore.kernel.org/r/20240920004817.676216-1-linux@treblig.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 2f02b5a commit 9ba5dcc

File tree

2 files changed

+0
-44
lines changed

2 files changed

+0
-44
lines changed

block/blk-settings.c

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -437,48 +437,6 @@ int queue_limits_set(struct request_queue *q, struct queue_limits *lim)
437437
}
438438
EXPORT_SYMBOL_GPL(queue_limits_set);
439439

440-
/**
441-
* blk_limits_io_min - set minimum request size for a device
442-
* @limits: the queue limits
443-
* @min: smallest I/O size in bytes
444-
*
445-
* Description:
446-
* Some devices have an internal block size bigger than the reported
447-
* hardware sector size. This function can be used to signal the
448-
* smallest I/O the device can perform without incurring a performance
449-
* penalty.
450-
*/
451-
void blk_limits_io_min(struct queue_limits *limits, unsigned int min)
452-
{
453-
limits->io_min = min;
454-
455-
if (limits->io_min < limits->logical_block_size)
456-
limits->io_min = limits->logical_block_size;
457-
458-
if (limits->io_min < limits->physical_block_size)
459-
limits->io_min = limits->physical_block_size;
460-
}
461-
EXPORT_SYMBOL(blk_limits_io_min);
462-
463-
/**
464-
* blk_limits_io_opt - set optimal request size for a device
465-
* @limits: the queue limits
466-
* @opt: smallest I/O size in bytes
467-
*
468-
* Description:
469-
* Storage devices may report an optimal I/O size, which is the
470-
* device's preferred unit for sustained I/O. This is rarely reported
471-
* for disk drives. For RAID arrays it is usually the stripe width or
472-
* the internal track size. A properly aligned multiple of
473-
* optimal_io_size is the preferred request size for workloads where
474-
* sustained throughput is desired.
475-
*/
476-
void blk_limits_io_opt(struct queue_limits *limits, unsigned int opt)
477-
{
478-
limits->io_opt = opt;
479-
}
480-
EXPORT_SYMBOL(blk_limits_io_opt);
481-
482440
static int queue_limit_alignment_offset(const struct queue_limits *lim,
483441
sector_t sector)
484442
{

include/linux/blkdev.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -968,8 +968,6 @@ static inline void blk_queue_disable_write_zeroes(struct request_queue *q)
968968
/*
969969
* Access functions for manipulating queue properties
970970
*/
971-
extern void blk_limits_io_min(struct queue_limits *limits, unsigned int min);
972-
extern void blk_limits_io_opt(struct queue_limits *limits, unsigned int opt);
973971
extern void blk_set_queue_depth(struct request_queue *q, unsigned int depth);
974972
extern void blk_set_stacking_limits(struct queue_limits *lim);
975973
extern int blk_stack_limits(struct queue_limits *t, struct queue_limits *b,

0 commit comments

Comments
 (0)