aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorBart Van Assche <[email protected]>2017-04-19 14:01:28 -0700
committerJens Axboe <[email protected]>2017-04-19 17:38:36 -0600
commit9a87182c4b69f7ca3ce764bbb4f72641e5a3b2b2 (patch)
treea0121132c58f41bd3ea558e24fb0a7f5839373af /tools/perf/scripts/python
parent0be0dee64eacd950f8e4b6c45adb5a92392eaaaf (diff)
block: Optimize ioprio_best()
Since ioprio_best() translates IOPRIO_CLASS_NONE into IOPRIO_CLASS_BE and since lower numerical priority values represent a higher priority a simple numerical comparison is sufficient. Signed-off-by: Bart Van Assche <[email protected]> Reviewed-by: Adam Manzanares <[email protected]> Tested-by: Adam Manzanares <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Cc: Matias Bjørling <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions