]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitccc3841c7822aa17ddd4c254c7eabfad829f5e20
treec5d71c82defa52fc3afe7d14e61f44cbb6ff7dc7
parent0becb567490604c45582bb6bea2f30ab1374dde8
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