patch-2.3.38 linux/mm/filemap.c
Next file: linux/mm/highmem.c
Previous file: linux/lib/string.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Thu Jan 6 16:21:23 2000
- Orig file:
v2.3.37/linux/mm/filemap.c
- Orig date:
Tue Jan 4 13:57:21 2000
diff -u --recursive --new-file v2.3.37/linux/mm/filemap.c linux/mm/filemap.c
@@ -211,7 +211,7 @@
spin_unlock(&pagecache_lock);
}
-int shrink_mmap(int priority, int gfp_mask)
+int shrink_mmap(int priority, int gfp_mask, zone_t *zone)
{
int ret = 0, count;
LIST_HEAD(young);
@@ -239,9 +239,7 @@
dispose = &old;
/* don't account passes over not DMA pages */
- if ((gfp_mask & __GFP_DMA) && !PageDMA(page))
- goto dispose_continue;
- if (!(gfp_mask & __GFP_HIGHMEM) && PageHighMem(page))
+ if (zone && (!memclass(page->zone, zone)))
goto dispose_continue;
count--;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)