dm: add a clone_to_tio helper
authorChristoph Hellwig <hch@lst.de>
Wed, 2 Feb 2022 16:00:58 +0000 (17:00 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 4 Feb 2022 14:43:17 +0000 (07:43 -0700)
commit6c23f0bd7f16d88c774db37b30c5da82811c41be
treed7cf20d397e5522248d6dd1e3060149d41440562
parentc347a787e34cba0e5a80a04082dacaf259105605
dm: add a clone_to_tio helper

Add a helper to stop open coding the container_of operations to get
from the clone bio to the tio structure.

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