]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit828c1c9cd3ca2f27e0e829c82e2a7ce0f1ddfe65
treec06cf2c3c78014e04481bbc84a72418a0ef41826
parentafc86e2942b91a625b7500ede422c83290bcab26
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