patch-2.1.108 linux/mm/memory.c
Next file: linux/mm/mlock.c
Previous file: linux/mm/filemap.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Tue Jun 30 12:42:50 1998
- Orig file:
v2.1.107/linux/mm/memory.c
- Orig date:
Tue Jun 23 10:01:30 1998
diff -u --recursive --new-file v2.1.107/linux/mm/memory.c linux/mm/memory.c
@@ -918,6 +918,22 @@
oom(tsk);
}
+/*
+ * Simplistic page force-in..
+ */
+void make_pages_present(unsigned long addr, unsigned long end)
+{
+ int write;
+ struct vm_area_struct * vma;
+
+ vma = find_vma(current->mm, addr);
+ write = (vma->vm_flags & VM_WRITE) != 0;
+ while (addr < end) {
+ handle_mm_fault(current, vma, addr, write);
+ addr += PAGE_SIZE;
+ }
+}
+
/* Low and high watermarks for page table cache.
The system should try to have pgt_water[0] <= cache elements <= pgt_water[1]
*/
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov