block: pass around REQ_* flags instead of broken down booleans during request alloc...
authorTejun Heo <tj@kernel.org>
Wed, 19 Oct 2011 12:31:22 +0000 (14:31 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 19 Oct 2011 12:31:22 +0000 (14:31 +0200)
commit75eb6c372d41d6d140b893873f6687d78c987a44
tree51864b2efe0415ad30226f218bc56c1a505bfb75
parentbc9fcbf9cb8ec76d340da16fbf48a9a316e14c52
block: pass around REQ_* flags instead of broken down booleans during request alloc/free

blk_alloc_request() and freed_request() take different combinations of
REQ_* @flags, @priv and @is_sync when @flags is superset of the latter
two.  Make them take @flags only.  This cleans up the code a bit and
will ease updating allocation related REQ_* flags.

This patch doesn't introduce any functional difference.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c