]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitecc19dfd64d95ad28b17e7281f01d678033a5241
treed7cf20d397e5522248d6dd1e3060149d41440562
parent571901cc61bea8df3593bbc03fe896f3b20e8581
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