Searched refs:old_prot (Results 1 – 1 of 1) sorted by relevance
298 int old_prot = get_page_prot(vma, start); in mmap_subpage() local305 if ((old_prot & PROT_WRITE) && (flags & MAP_ANONYMOUS) && !vma->vm_file) { in mmap_subpage()317 if (old_prot) in mmap_subpage()330 if (old_prot) { in mmap_subpage()352 ret = sys_mprotect(PAGE_START(start), PAGE_SIZE, prot | old_prot); in mmap_subpage()615 int old_prot; in mprotect_subpage() local621 old_prot = get_page_prot(vma, address); in mprotect_subpage()622 return sys_mprotect(address, PAGE_SIZE, new_prot | old_prot); in mprotect_subpage()