patch-2.1.17 linux/mm/mlock.c
Next file: linux/mm/mmap.c
Previous file: linux/mm/memory.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Thu Dec 19 16:46:09 1996
- Orig file:
v2.1.16/linux/mm/mlock.c
- Orig date:
Tue Oct 29 19:58:48 1996
diff -u --recursive --new-file v2.1.16/linux/mm/mlock.c linux/mm/mlock.c
@@ -203,7 +203,7 @@
/* we may lock at most half of physical memory... */
/* (this check is pretty bogus, but doesn't hurt) */
- if (locked > max_mapnr/2)
+ if (locked > num_physpages/2)
return -ENOMEM;
return do_mlock(start, len, 1);
@@ -260,7 +260,7 @@
/* we may lock at most half of physical memory... */
/* (this check is pretty bogus, but doesn't hurt) */
- if (current->mm->total_vm > max_mapnr/2)
+ if (current->mm->total_vm > num_physpages/2)
return -ENOMEM;
return do_mlockall(flags);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov