@@ -437,48 +437,6 @@ int queue_limits_set(struct request_queue *q, struct queue_limits *lim)
437
437
}
438
438
EXPORT_SYMBOL_GPL (queue_limits_set );
439
439
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
-
482
440
static int queue_limit_alignment_offset (const struct queue_limits * lim ,
483
441
sector_t sector )
484
442
{
0 commit comments