]> git.karo-electronics.de Git - karo-tx-linux.git/commit
block: Introduce __blk_segment_map_sg() helper
authorAsias He <asias@redhat.com>
Thu, 2 Aug 2012 21:42:03 +0000 (23:42 +0200)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 22 Aug 2012 00:47:12 +0000 (10:47 +1000)
commit5277e47be2427ad69ee2eb86eefdfd5e02396503
tree6a8ee3d71fd2a82d29b06fd19b0b4b7b671a48b7
parentb72068fd853c3fb37fc8e4b9953b1b48ab6bfad0
block: Introduce __blk_segment_map_sg() helper

Split the mapping code in blk_rq_map_sg() to a helper
__blk_segment_map_sg(), so that other mapping function, e.g.
blk_bio_map_sg(), can share the code.

Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Tejun Heo <tj@kernel.org>
Cc: Shaohua Li <shli@kernel.org>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: kvm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: virtualization@lists.linux-foundation.org
Suggested-by: Jens Axboe <axboe@kernel.dk>
Suggested-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Asias He <asias@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
block/blk-merge.c