lkml.org 
[lkml]   [2006]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 01/11] swap_prefetch: Remove incorrect use of ZONE_HIGHMEM
swap_prefetch: Remove useless reference to HIGHMEM reserves.

HIGHMEM "reserves" are always zero. Remove the addition of the highmem
reserves.

Signed-off-by: Christoph Lameter <clameter@sgi.com>

Index: linux-2.6.17-mm6/mm/swap_prefetch.c
===================================================================
--- linux-2.6.17-mm6.orig/mm/swap_prefetch.c 2006-07-03 13:47:22.656121359 -0700
+++ linux-2.6.17-mm6/mm/swap_prefetch.c 2006-07-04 08:30:07.805828891 -0700
@@ -277,8 +277,7 @@ 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[ZONE_HIGHMEM];
+ ns->lowfree[idx] = z->pages_high * 3;
ns->highfree[idx] = ns->lowfree[idx] + z->pages_high;

if (z->free_pages > ns->highfree[idx]) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-07-08 01:21    [W:0.273 / U:0.676 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site