[PATCH v2] scatterlist: add sg_alloc_table_from_pages function

2012-04-24 Thread Tomasz Stanislawski
This patch adds a new constructor for an sg table. The table is constructed from an array of struct pages. All contiguous chunks of the pages are merged into a single sg nodes. A user may provide an offset and a size of a buffer if the buffer is not page-aligned. The function is dedicated for

Re: [PATCH v2] scatterlist: add sg_alloc_table_from_pages function

2012-04-24 Thread Daniel Vetter
On Tue, Apr 24, 2012 at 02:58:56PM +0200, Tomasz Stanislawski wrote: This patch adds a new constructor for an sg table. The table is constructed from an array of struct pages. All contiguous chunks of the pages are merged into a single sg nodes. A user may provide an offset and a size of a