patch-2.1.115 linux/mm/filemap.c
Next file: linux/mm/memory.c
Previous file: linux/kernel/sysctl.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Tue Aug 4 17:04:04 1998
- Orig file:
v2.1.114/linux/mm/filemap.c
- Orig date:
Mon Aug 3 12:45:48 1998
diff -u --recursive --new-file v2.1.114/linux/mm/filemap.c linux/mm/filemap.c
@@ -216,6 +216,12 @@
page = mem_map + clock;
do {
+ if (PageSkip(page)) {
+ /* next_hash is overloaded for PageSkip */
+ page = page->next_hash;
+ clock = page->map_nr;
+ }
+
if (shrink_one_page(page, gfp_mask))
return 1;
count_max--;
@@ -223,7 +229,7 @@
count_min--;
page++;
clock++;
- if (clock >= limit) {
+ if (clock >= max_mapnr) {
clock = 0;
page = mem_map;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov