[PATCH v2 06/10] scatterlist: support "page-less" (__pfn_t only) entries

2015-05-06 Thread Dan Williams
From: Matthew Wilcox Given that an offset will never be more than PAGE_SIZE, steal the unused bits of the offset to implement a flags field. Move the existing "this is a sg_chain() entry" flag to the new flags field, and add a new flag (SG_FLAGS_PAGE) to indicate that there is a struct page

[PATCH v2 06/10] scatterlist: support page-less (__pfn_t only) entries

2015-05-06 Thread Dan Williams
From: Matthew Wilcox wi...@linux.intel.com Given that an offset will never be more than PAGE_SIZE, steal the unused bits of the offset to implement a flags field. Move the existing this is a sg_chain() entry flag to the new flags field, and add a new flag (SG_FLAGS_PAGE) to indicate that there