mm: mremap: downgrade mmap_sem to read when shrinking
[muen/linux.git] / include / linux / mm.h
index 33228a49d7d2179fb0ea3caaf9df38f20f96a833..a023c5ce71fadcb07fabe439c6f9f3ef0f850990 100644 (file)
@@ -2306,6 +2306,8 @@ extern unsigned long do_mmap(struct file *file, unsigned long addr,
        unsigned long len, unsigned long prot, unsigned long flags,
        vm_flags_t vm_flags, unsigned long pgoff, unsigned long *populate,
        struct list_head *uf);
+extern int __do_munmap(struct mm_struct *, unsigned long, size_t,
+                      struct list_head *uf, bool downgrade);
 extern int do_munmap(struct mm_struct *, unsigned long, size_t,
                     struct list_head *uf);