From: Con Kolivas Correct the effect lowmem_reserve has on calculation of free limits in swap_prefetch. Signed-off-by: Con Kolivas Signed-off-by: Andrew Morton --- mm/swap_prefetch.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -puN mm/swap_prefetch.c~mm-swap-prefetch-fix-lowmem-reserve-calc mm/swap_prefetch.c --- devel/mm/swap_prefetch.c~mm-swap-prefetch-fix-lowmem-reserve-calc 2006-05-18 02:16:47.000000000 -0700 +++ devel-akpm/mm/swap_prefetch.c 2006-05-18 02:16:47.000000000 -0700 @@ -276,7 +276,8 @@ static void examine_free_limits(void) ns = &sp_stat.node[z->zone_pgdat->node_id]; idx = zone_idx(z); - ns->lowfree[idx] = z->pages_high * 3 + z->lowmem_reserve[idx]; + ns->lowfree[idx] = z->pages_high * 3 + + z->lowmem_reserve[ZONE_HIGHMEM]; ns->highfree[idx] = ns->lowfree[idx] + z->pages_high; if (z->free_pages > ns->highfree[idx]) { _