mm: munmap/munmap/mremap and relative
Subsystems (2)
PATCH 6/8 mm: munmap/munmap/mremap and relative
Adjust VM_LOCKED relative operations in munmap/mmap/mremap:
replacing make_pages_present with make_pages_wired.
Signed-off-by Shaoping Wang <[email protected]>
mmap.c | 8 ++++---- mremap.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-)
--
mm/mmap.c +4 -4
@@ -1119,7 +1119,7 @@vm_stat_account (mm, vm_flags, file, len >>PAGE_SHIFT );if (vm_flags &VM_LOCKED ) { mm->locked_vm += len >>PAGE_SHIFT ; -make_pages_present (addr, addr + len); +make_pages_wired (addr, addr + len); }if (flags &MAP_POPULATE ) {up_write (&mm->mmap_sem);
@@ -1551,7 +1551,7 @@if (!prev ||expand_stack (prev, addr))return NULL ;if (prev->vm_flags &VM_LOCKED ) { -make_pages_present (addr, prev->vm_end); +make_pages_wired (addr, prev->vm_end); }return prev; }
@@ -1614,7 +1614,7 @@if (expand_stack (vma, addr))return NULL ;if (vma->vm_flags &VM_LOCKED ) { -make_pages_present (addr, start); +make_pages_wired (addr, start); }return vma; }
@@ -1921,7 +1921,7 @@ mm->total_vm += len >>PAGE_SHIFT ;if (flags &VM_LOCKED ) { mm->locked_vm += len >>PAGE_SHIFT ; -make_pages_present (addr, addr + len); +make_pages_wired (addr, addr + len); }return addr; }
mm/mremap.c +2 -2
@@ -230,7 +230,7 @@if (vm_flags &VM_LOCKED ) { mm->locked_vm += new_len >>PAGE_SHIFT ;if (new_len > old_len) -make_pages_present (new_addr + old_len, +make_pages_wired (new_addr + old_len, new_addr + new_len); }
@@ -367,7 +367,7 @@vm_stat_account (mm, vma->vm_flags, vma->vm_file, pages);if (vma->vm_flags &VM_LOCKED ) { mm->locked_vm += pages; -make_pages_present (addr + old_len, +make_pages_wired (addr + old_len, addr + new_len); } ret = addr;
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>