diff options
author | Christoph Hellwig <hch@lst.de> | 2024-03-03 17:01:50 +0300 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2024-03-06 19:59:54 +0300 |
commit | dd27a84b06aa9ea6a94b0f3e59dc768f981962e1 (patch) | |
tree | 7fb57bb1a83986e399949206fb1e6bc77668cb1c /block/blk-settings.c | |
parent | 396799eb5b6f87ec2d759e1a90e179f7058ab9e6 (diff) | |
download | linux-dd27a84b06aa9ea6a94b0f3e59dc768f981962e1.tar.xz |
block: remove disk_stack_limits
disk_stack_limits is unused now, remove it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed--by: Song Liu <song@kernel.org>
Tested-by: Song Liu <song@kernel.org>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20240303140150.5435-12-hch@lst.de
Diffstat (limited to 'block/blk-settings.c')
-rw-r--r-- | block/blk-settings.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/block/blk-settings.c b/block/blk-settings.c index 13865a9f8972..3c7d8d638ab5 100644 --- a/block/blk-settings.c +++ b/block/blk-settings.c @@ -917,30 +917,6 @@ void queue_limits_stack_bdev(struct queue_limits *t, struct block_device *bdev, EXPORT_SYMBOL_GPL(queue_limits_stack_bdev); /** - * disk_stack_limits - adjust queue limits for stacked drivers - * @disk: MD/DM gendisk (top) - * @bdev: the underlying block device (bottom) - * @offset: offset to beginning of data within component device - * - * Description: - * Merges the limits for a top level gendisk and a bottom level - * block_device. - */ -void disk_stack_limits(struct gendisk *disk, struct block_device *bdev, - sector_t offset) -{ - struct request_queue *t = disk->queue; - - if (blk_stack_limits(&t->limits, &bdev_get_queue(bdev)->limits, - get_start_sect(bdev) + (offset >> 9)) < 0) - pr_notice("%s: Warning: Device %pg is misaligned\n", - disk->disk_name, bdev); - - disk_update_readahead(disk); -} -EXPORT_SYMBOL(disk_stack_limits); - -/** * blk_queue_update_dma_pad - update pad mask * @q: the request queue for the device * @mask: pad mask |