commit | 309dca309fc39a9e3c31b916393b74bd174fd74e | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Sun Jan 24 11:02:34 2021 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Sun Jan 24 18:17:20 2021 -0700 |
tree | 2d4687a800a52cfd96482c7c01224236da796102 | |
parent | cf9a978f9781fb30b778ee61ef6bd164c655d9ff [diff] |
block: store a block_device pointer in struct bio Replace the gendisk pointer in struct bio with a pointer to the newly improved struct block device. From that the gendisk can be trivially accessed with an extra indirection, but it also allows to directly look up all information related to partition remapping. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>