]> git.baikalelectronics.ru Git - kernel.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)
commit1661653a9b5c8e398a58b927699cd2ab42211ee0
treedd9e515480ec307cf12378f13b01c7922cf3266c
parent26f1892903f35f11c1bd57ef306c599014faf212
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