Hi Christoph, On 07/16/2017 11:42 PM, Christoph Hellwig wrote:
I would expect that it would support any contiguous range in the kernel mapping (e.g. no vmalloc and friends). But it's not documented anywhere, and if no in kernel users makes use of that fact at the moment it might be better to document a page size limitation and add asserts to enforce it.
My first thought was indeed to add a BUG_ON for @size > PAGE_SIZE (also accounting for offset etc), but I have a feeling this will cause too many breakages. So perhaps it would be better to add the fact to Documentation that it can handle any physically contiguous range.
-Vineet -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>