]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - mm/mprotect.c
config: Add RTL8XXXU wifi module
[mirror_ubuntu-zesty-kernel.git] / mm / mprotect.c
index cc2459c57f6080f8776cbc81c844137337bb775e..bccccc73080d015ba5259d04a5c313203674facf 100644 (file)
@@ -25,7 +25,7 @@
 #include <linux/perf_event.h>
 #include <linux/pkeys.h>
 #include <linux/ksm.h>
-#include <asm/uaccess.h>
+#include <linux/uaccess.h>
 #include <asm/pgtable.h>
 #include <asm/cacheflush.h>
 #include <asm/mmu_context.h>
@@ -113,7 +113,7 @@ static unsigned long change_pte_range(struct vm_area_struct *vma, pmd_t *pmd,
                        ptent = ptep_modify_prot_start(mm, addr, pte);
                        ptent = pte_modify(ptent, newprot);
                        if (preserve_write)
-                               ptent = pte_mkwrite(ptent);
+                               ptent = pte_mk_savedwrite(ptent);
 
                        /* Avoid taking write faults for known dirty pages */
                        if (dirty_accountable && pte_dirty(ptent) &&