summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAndreas Mohr <andi@lisas.de>2006-03-28 08:59:49 +0200
committerJens Axboe <axboe@suse.de>2006-03-28 08:59:49 +0200
commite8a99053ea82a4b4375049886cf1db64d7dcd755 (patch)
treef16f440237e5627bda317923198fbbe00cb22e96 /Makefile
parent[PATCH] [BLOCK] cfq-iosched: change cfq io context linking from list to tree (diff)
downloadlinux-e8a99053ea82a4b4375049886cf1db64d7dcd755.tar.xz
linux-e8a99053ea82a4b4375049886cf1db64d7dcd755.zip
[PATCH] cfq-iosched: small cfq_choose_req() optimization
this is a small optimization to cfq_choose_req() in the CFQ I/O scheduler (this function is a semi-often invoked candidate in an oprofile log): by using a bit mask variable, we can use a simple switch() to check the various cases instead of having to query two variables for each check. Benefit: 251 vs. 285 bytes footprint of cfq_choose_req(). Also, common case 0 (no request wrapping) is now checked first in code. Signed-off-by: Andreas Mohr <andi@lisas.de> Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions