patch-2.2.0-pre4 linux/mm/page_alloc.c
Next file: linux/mm/vmscan.c
Previous file: linux/ipc/util.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Sat Jan 2 19:02:16 1999
- Orig file:
v2.2.0-pre3/linux/mm/page_alloc.c
- Orig date:
Fri Jan 1 12:58:21 1999
diff -u --recursive --new-file v2.2.0-pre3/linux/mm/page_alloc.c linux/mm/page_alloc.c
@@ -151,6 +151,7 @@
if (!PageReserved(page) && atomic_dec_and_test(&page->count)) {
if (PageSwapCache(page))
panic ("Freeing swap cache page");
+ page->flags &= ~(1 << PG_referenced);
free_pages_ok(page->map_nr, 0);
return;
}
@@ -172,6 +173,7 @@
if (atomic_dec_and_test(&map->count)) {
if (PageSwapCache(map))
panic ("Freeing swap cache pages");
+ map->flags &= ~(1 << PG_referenced);
free_pages_ok(map_nr, order);
return;
}
@@ -197,8 +199,9 @@
do { struct page *prev = memory_head(area), *ret = prev->next; \
while (memory_head(area) != ret) { \
if (!dma || CAN_DMA(ret)) { \
- unsigned long map_nr = ret->map_nr; \
+ unsigned long map_nr; \
(prev->next = ret->next)->prev = prev; \
+ map_nr = ret->map_nr; \
MARK_USED(map_nr, new_order, area); \
nr_free_pages -= 1 << order; \
EXPAND(ret, map_nr, order, new_order, area); \
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov