io-mapping: Always create a struct to hold metadata about the io-mapping
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 19 Aug 2016 15:54:26 +0000 (16:54 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 19 Aug 2016 16:13:35 +0000 (17:13 +0100)
commitcafaf14a5d8f152ed3c984ecd48dee6e824446bc
tree3053466d3791ede38d33e61f34b8541bae8d3a43
parent8678fdaf396c3aa3732b3d98ce2241633dbc26ba
io-mapping: Always create a struct to hold metadata about the io-mapping

Currently, we only allocate a structure to hold metadata if we need to
allocate an ioremap for every access, such as on x86-32. However, it
would be useful to store basic information about the io-mapping, such as
its page protection, on all platforms.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: linux-mm@kvack.org
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20160819155428.1670-4-chris@chris-wilson.co.uk
include/linux/io-mapping.h