mm/hmm: allow to mirror vma of a file on a DAX backed filesystem
HMM mirror is a device driver helpers to mirror range of virtual address.
It means that the process jobs running on the device can access the same
virtual address as the CPU threads of that process. This patch adds
support for mirroring mapping of file that are on a DAX block device (ie
range of virtual address that is an mmap of a file in a filesystem on a
DAX block device). There is no reason to not support such case when
mirroring virtual address on a device.
Note that unlike GUP code we do not take page reference hence when we
back-off we have nothing to undo.
[firstname.lastname@example.org: move THP and hugetlbfs code path behind #if KCONFIG]
Signed-off-by: Jérôme Glisse <email@example.com>
Reviewed-by: Ralph Campbell <firstname.lastname@example.org>
Cc: Dan Williams <email@example.com>
Cc: John Hubbard <firstname.lastname@example.org>
Cc: Arnd Bergmann <email@example.com>
Cc: Balbir Singh <firstname.lastname@example.org>
Cc: Dan Carpenter <email@example.com>
Cc: Ira Weiny <firstname.lastname@example.org>
Cc: Matthew Wilcox <email@example.com>
Cc: Souptick Joarder <firstname.lastname@example.org>
Signed-off-by: Andrew Morton <email@example.com>
Signed-off-by: Linus Torvalds <firstname.lastname@example.org>
1 file changed