]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - block/blk-merge.c
scatterlist: introduce sg_unmark_end
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 20 Mar 2013 05:07:08 +0000 (15:37 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 20 Mar 2013 05:13:04 +0000 (15:43 +1030)
commitc8164d8931fdee9ac5314708c4071adf1d997425
treec5d71c82defa52fc3afe7d14e61f44cbb6ff7dc7
parent0d2e1a2926b1839a4b74519e660739b2566c9386
scatterlist: introduce sg_unmark_end

This is useful in places that recycle the same scatterlist multiple
times, and do not want to incur the cost of sg_init_table every
time in hot paths.

Acked-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
block/blk-integrity.c
block/blk-merge.c
include/linux/scatterlist.h