Bart Van Assche e80a0af475 lib/scatterlist: Introduce sgl_alloc() and sgl_free()
Many kernel drivers contain code that allocates and frees both a
scatterlist and the pages that populate that scatterlist.
Introduce functions in lib/scatterlist.c that perform these tasks
instead of duplicating this functionality in multiple drivers.
Only include these functions in the build if CONFIG_SGL_ALLOC=y
to avoid that the kernel size increases if this functionality is
not used.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2018-01-06 09:18:00 -07:00
..
2017-11-30 13:37:29 +01:00
2017-11-15 10:56:56 -08:00
2017-11-15 20:30:12 -08:00
2017-12-15 13:35:36 -05:00
2017-11-15 14:54:53 -08:00
2017-12-14 18:21:33 -08:00
2017-11-20 21:50:24 -10:00
2017-11-16 13:06:27 -08:00