cfq-iosched: algebraic simplification in cfq_prio_to_maxrq()
authorNamhyung Kim <namhyung@gmail.com>
Tue, 24 May 2011 08:23:21 +0000 (10:23 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Tue, 24 May 2011 08:23:21 +0000 (10:23 +0200)
commitb9f8ce059940064a732da49b5d6e618381dad956
tree850281e8dd7bf5813d2960c2d42177803072bc02
parent4cbadbd16e2fb727f6926597e0a580829e6222f1
cfq-iosched: algebraic simplification in cfq_prio_to_maxrq()

Simplify the calculation in cfq_prio_to_maxrq(), plus replace CFQ_PRIO_LISTS to
IOPRIO_BE_NR since they are the same and IOPRIO_BE_NR looks more reasonable in
this context IMHO.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/cfq-iosched.c