diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2017-04-19 23:01:28 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-20 01:38:36 +0200 |
commit | 9a87182c4b69f7ca3ce764bbb4f72641e5a3b2b2 (patch) | |
tree | a0121132c58f41bd3ea558e24fb0a7f5839373af /drivers/lightnvm | |
parent | block: Inline blk_rq_set_prio() (diff) | |
download | linux-9a87182c4b69f7ca3ce764bbb4f72641e5a3b2b2.tar.xz linux-9a87182c4b69f7ca3ce764bbb4f72641e5a3b2b2.zip |
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 <bart.vanassche@sandisk.com>
Reviewed-by: Adam Manzanares <adam.manzanares@wdc.com>
Tested-by: Adam Manzanares <adam.manzanares@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/lightnvm')
0 files changed, 0 insertions, 0 deletions