block: factor out a chunk_size_left helper
authorChristoph Hellwig <hch@lst.de>
Tue, 14 Jun 2022 09:09:29 +0000 (11:09 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 27 Jun 2022 12:29:11 +0000 (06:29 -0600)
commit8689461be3f1ce6686bc26f1f379790bb0fc7a8c
treec06cf2c3c78014e04481bbc84a72418a0ef41826
parent51ab80f0aa861335eb80327af53e444a27e824b8
block: factor out a chunk_size_left helper

Factor out a helper from blk_max_size_offset so that it can be reused
independently.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Pankaj Raghav <p.raghav@samsung.com>
Link: https://lore.kernel.org/r/20220614090934.570632-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blkdev.h