From: FUJITA Tomonori Date: Thu, 28 Aug 2008 07:17:06 +0000 (+0900) Subject: block: introduce struct rq_map_data to use reserved pages X-Git-Tag: v2.6.28-rc1~733^2~69 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=152e283fdfea0cd11e297d982378b55937842dde;p=pandora-kernel.git block: introduce struct rq_map_data to use reserved pages This patch introduces struct rq_map_data to enable bio_copy_use_iov() use reserved pages. Currently, bio_copy_user_iov allocates bounce pages but drivers/scsi/sg.c wants to allocate pages by itself and use them. struct rq_map_data can be used to pass allocated pages to bio_copy_user_iov. The current users of bio_copy_user_iov simply passes NULL (they don't want to use pre-allocated pages). Signed-off-by: FUJITA Tomonori Cc: Jens Axboe Cc: Douglas Gilbert Cc: Mike Christie Cc: James Bottomley Signed-off-by: Jens Axboe --- Reading git-diff-tree failed