summaryrefslogtreecommitdiffstats
path: root/block/ioctl.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-09-21 09:19:46 +0200
committerJens Axboe <axboe@kernel.dk>2020-09-23 10:43:19 -0600
commit9301fe734384990ef9a2463cb7aeb3b00bf5dad5 (patch)
tree2cfaa7c9ad519b65e74e6cf2a02a995b0b24c498 /block/ioctl.c
parent38430f0876fa8b9549ec434f569dce03e057c076 (diff)
downloadlinux-9301fe734384990ef9a2463cb7aeb3b00bf5dad5.tar.gz
linux-9301fe734384990ef9a2463cb7aeb3b00bf5dad5.tar.bz2
linux-9301fe734384990ef9a2463cb7aeb3b00bf5dad5.zip
block: cleanup partition scanning in register_disk
Use blkdev_get_by_dev instead of open coding it using bdget_disk + blkdev_get, and split the code to read the partition table into a separate helper to make it a little more obvious. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/ioctl.c')
0 files changed, 0 insertions, 0 deletions