OSDN Git Service

block: factor out a part_devt helper
authorChristoph Hellwig <hch@lst.de>
Tue, 25 May 2021 06:13:00 +0000 (08:13 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Jun 2021 13:45:49 +0000 (07:45 -0600)
commitc97d93c31e5734a16bfe663085ec91b8c9fb20f9
treefdac112a1884242e87aa576e5f01675fc969a530
parentab4b57057d744861f670b47b163209727b26418b
block: factor out a part_devt helper

Add a helper to find the dev_t for a disk + partno tuple.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20210525061301.2242282-8-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/genhd.c
include/linux/genhd.h
init/do_mounts.c