]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
blktrace: simplify flags handling in __blk_add_trace
authorDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 10 Aug 2008 11:33:00 +0000 (12:33 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:01 +0000 (08:56 +0200)
commit35ba8f7083e87602b695d6eaca38a6464d5b74db
treedd9e515480ec307cf12378f13b01c7922cf3266c
parent27b29e86bf3d4b3cf6641a0efd78ed11a9b633b2
blktrace: simplify flags handling in __blk_add_trace

Let the compiler see what's going on, and it can all get a lot simpler.
On PPC64 this reduces the size of the code calculating these bits by
about 60%. On x86_64 it's less of a win -- only 40%.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blktrace.c