]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerJens Axboe <axboe@kernel.dk>
Thu, 2 Aug 2012 21:42:03 +0000 (23:42 +0200)
commit963ab9e5da95c654bb3ab937cc478de4f7088a96
tree644caf1f513e1f206d4c732044b943c276af9f8d
parent53362a05ae683e12a20d9ffdf58a88094a0bed9d
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>
block/blk-merge.c