]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
mm, dax: introduce pfn_t_special()
authorDan Williams <dan.j.williams@intel.com>
Mon, 23 Oct 2017 14:20:00 +0000 (07:20 -0700)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Tue, 20 Mar 2018 17:20:15 +0000 (14:20 -0300)
commitc11da42b6c4b770b49abb29c61f95d2ff2c5fa83
treedf07d3f606b1cc0599ff33bf47b4cb850e1976f9
parentc4a6b3d4f2711d9a7c590f91ada854f0adbbd9c6
mm, dax: introduce pfn_t_special()

BugLink: http://bugs.launchpad.net/bugs/1751724
In support of removing the VM_MIXEDMAP indication from DAX VMAs,
introduce pfn_t_special() for drivers to indicate that _PAGE_SPECIAL
should be used for DAX ptes. This also helps identify drivers like
dccssblk that only want to use DAX in a read-only fashion without
get_user_pages() support.

Ideally we could delete axonram and dcssblk DAX support, but if we need
to keep it better make it explicit that axonram and dcssblk only support
a sub-set of DAX due to missing _PAGE_DEVMAP support.

Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
(cherry picked from commit 785a3fab4adbf91b2189c928a59ae219c54ba95e)
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
arch/powerpc/sysdev/axonram.c
drivers/s390/block/dcssblk.c
include/linux/pfn_t.h
mm/memory.c