diff options
author | Christoph Hellwig <hch@lst.de> | 2020-07-20 08:12:50 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-07-20 15:38:52 -0600 |
commit | 9efa82ef2b15d1757dd6cc518988a4506554e893 (patch) | |
tree | 923cbf50acc917a35fc6205c581e5dc364eb2936 /drivers/md | |
parent | 3093a479727be194996dbc40f803711af5877be4 (diff) | |
download | linux-stable-9efa82ef2b15d1757dd6cc518988a4506554e893.tar.gz linux-stable-9efa82ef2b15d1757dd6cc518988a4506554e893.tar.bz2 linux-stable-9efa82ef2b15d1757dd6cc518988a4506554e893.zip |
block: remove bdev_stack_limits
This function is just a tiny wrapper around blk_stack_limit and has
two callers. Simplify the stack a bit by open coding it in the two
callers.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Tested-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-table.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index ec5364133cef..aac4c31cfc84 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c @@ -458,7 +458,8 @@ static int dm_set_device_limits(struct dm_target *ti, struct dm_dev *dev, return 0; } - if (bdev_stack_limits(limits, bdev, start) < 0) + if (blk_stack_limits(limits, &q->limits, + get_start_sect(bdev) + start) < 0) DMWARN("%s: adding target device %s caused an alignment inconsistency: " "physical_block_size=%u, logical_block_size=%u, " "alignment_offset=%u, start=%llu", |