patch-2.0.21-2.1.0 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:
Mon Sep 23 14:38:29 1996
- Orig file:
lx2.0/v2.0.21/linux/mm/mlock.c
- Orig date:
Wed Sep 11 17:57:19 1996
diff -u --recursive --new-file lx2.0/v2.0.21/linux/mm/mlock.c linux/mm/mlock.c
@@ -202,7 +202,7 @@
/* we may lock at most half of physical memory... */
/* (this check is pretty bogus, but doesn't hurt) */
- if (locked > MAP_NR(high_memory)/2)
+ if (locked > max_mapnr/2)
return -ENOMEM;
return do_mlock(start, len, 1);
@@ -259,7 +259,7 @@
/* we may lock at most half of physical memory... */
/* (this check is pretty bogus, but doesn't hurt) */
- if (current->mm->total_vm > MAP_NR(high_memory)/2)
+ if (current->mm->total_vm > max_mapnr/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