block: share request flush fields with elevator_private
authorMike Snitzer <snitzer@redhat.com>
Fri, 11 Feb 2011 10:08:00 +0000 (11:08 +0100)
committerJens Axboe <jaxboe@fusionio.com>
Fri, 11 Feb 2011 10:08:00 +0000 (11:08 +0100)
commitc186794dbb466b45cf40f942f2d09d6d5b4b0e42
tree07ccd819bb6cced2c19053d2ed97ebaac88f824e
parent9d5a4e946ce5352f19400b6370f4cd8e72806278
block: share request flush fields with  elevator_private

Flush requests are never put on the IO scheduler.  Convert request
structure's elevator_private* into an array and have the flush fields
share a union with it.

Reclaim the space lost in 'struct request' by moving 'completion_data'
back in the union with 'rb_node'.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/cfq-iosched.c
block/elevator.c
include/linux/blkdev.h