diff options
author | Christoph Hellwig <hch@lst.de> | 2022-06-14 11:09:30 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-06-27 14:29:11 +0200 |
commit | c39493222e41098cd15d11f972d16e943919506d (patch) | |
tree | 6651b2dc778ac1d9093a22b93e10af38a10c35b9 /block/blk-merge.c | |
parent | block: factor out a chunk_size_left helper (diff) | |
download | linux-c39493222e41098cd15d11f972d16e943919506d.tar.xz linux-c39493222e41098cd15d11f972d16e943919506d.zip |
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>
Diffstat (limited to 'block/blk-merge.c')
0 files changed, 0 insertions, 0 deletions