diff options
| author | Christoph Hellwig <[email protected]> | 2023-06-01 11:44:45 +0200 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-06-05 10:53:03 -0600 |
| commit | ae5f855ead6b41422ca0c971ebda509c0414f8ec (patch) | |
| tree | 69db0b8d640254dfc4214988593395b48dc2a57e /tools/perf/scripts/python/task-analyzer.py | |
| parent | 0783b1a7cbd9a02ddc35fe531b5966b674b304f0 (diff) | |
block: refactor bd_may_claim
The long if/else chain obsfucates the actual logic. Tidy it up to be
more structured. Also drop the whole argument, as it can be trivially
derived from bdev using bdev_whole, and having the bdev_whole in the
function makes it easier to follow.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Acked-by: Dave Chinner <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions