]> git.baikalelectronics.ru Git - kernel.git/commit
dm: open code blk_max_size_offset in max_io_len
authorChristoph Hellwig <hch@lst.de>
Tue, 14 Jun 2022 09:09:30 +0000 (11:09 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 27 Jun 2022 12:29:11 +0000 (06:29 -0600)
commit52a1eccce5e9f08f215f7aa7163a96a747c0481e
tree6651b2dc778ac1d9093a22b93e10af38a10c35b9
parent828c1c9cd3ca2f27e0e829c82e2a7ce0f1ddfe65
dm: open code blk_max_size_offset in max_io_len

max_io_len always passes an explicitly non-zero chunk_sectors into
blk_max_size_offset.  That means much of blk_max_size_offset is not
needed and can be open coded to simplify the code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Snitzer <snitzer@kernel.org>
Link: https://lore.kernel.org/r/20220614090934.570632-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/dm.c