scatterlist: add sg_zero_buffer() helper
authorJohannes Thumshirn <jthumshirn@suse.de>
Wed, 7 Jun 2017 09:45:28 +0000 (11:45 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 15 Jun 2017 12:30:14 +0000 (14:30 +0200)
commit0945e56994ac855d01c4aecf69bded65c751b894
tree4eb91a5f067aa28a6cbb0056e56d7a5e0f9ed351
parentd19d4c8eb1c08f5292a5a5619098e498166055c2
scatterlist: add sg_zero_buffer() helper

The sg_zero_buffer() helper is used to zero fill an area in a SG
list.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
[hch: renamed to sg_zero_buffer]
Signed-off-by: Christoph Hellwig <hch@lst.de>
include/linux/scatterlist.h
lib/scatterlist.c