diff options
| author | Christoph Hellwig <[email protected]> | 2020-09-21 09:19:46 +0200 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2020-09-23 10:43:19 -0600 |
| commit | 9301fe734384990ef9a2463cb7aeb3b00bf5dad5 (patch) | |
| tree | 2cfaa7c9ad519b65e74e6cf2a02a995b0b24c498 /tools/perf/scripts/python | |
| parent | 38430f0876fa8b9549ec434f569dce03e057c076 (diff) | |
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 <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions