mm: Add a vmf_insert_mixed_prot() function
authorThomas Hellstrom <thellstrom@vmware.com>
Fri, 22 Nov 2019 08:25:12 +0000 (09:25 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 16 Jan 2020 09:32:33 +0000 (10:32 +0100)
commit574c5b3d0e4c0803d3094fd27f83e161345ebe2f
tree5b75b8932101bbe6886192d918709cc8ae219fdb
parent71e7274066c646bb3d9da39d2f4db0a6404c0a2d
mm: Add a vmf_insert_mixed_prot() function

The TTM module today uses a hack to be able to set a different page
protection than struct vm_area_struct::vm_page_prot. To be able to do
this properly, add the needed vm functionality as vmf_insert_mixed_prot().

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: Ralph Campbell <rcampbell@nvidia.com>
Cc: "Jérôme Glisse" <jglisse@redhat.com>
Cc: "Christian König" <christian.koenig@amd.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Acked-by: Christian König <christian.koenig@amd.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mm.h
include/linux/mm_types.h
mm/memory.c