patch-2.2.7 linux/mm/vmscan.c
Next file: linux/net/802/tr.c
Previous file: linux/mm/vmalloc.c
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Fri Apr 23 11:07:30 1999
- Orig file:
v2.2.6/linux/mm/vmscan.c
- Orig date:
Tue Feb 23 15:21:35 1999
diff -u --recursive --new-file v2.2.6/linux/mm/vmscan.c linux/mm/vmscan.c
@@ -45,12 +45,7 @@
page = pte_page(pte);
if (MAP_NR(page) >= max_mapnr)
return 0;
-
page_map = mem_map + MAP_NR(page);
- if (PageReserved(page_map)
- || PageLocked(page_map)
- || ((gfp_mask & __GFP_DMA) && !PageDMA(page_map)))
- return 0;
if (pte_young(pte)) {
/*
@@ -62,6 +57,11 @@
return 0;
}
+ if (PageReserved(page_map)
+ || PageLocked(page_map)
+ || ((gfp_mask & __GFP_DMA) && !PageDMA(page_map)))
+ return 0;
+
/*
* Is the page already in the swap cache? If so, then
* we can just drop our reference to it without doing
@@ -248,9 +248,8 @@
pgd_t *pgdir;
unsigned long end;
- /* Don't swap out areas like shared memory which have their
- own separate swapping mechanism or areas which are locked down */
- if (vma->vm_flags & (VM_SHM | VM_LOCKED))
+ /* Don't swap out areas which are locked down */
+ if (vma->vm_flags & VM_LOCKED)
return 0;
pgdir = pgd_offset(tsk->mm, address);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)