summaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@engr.sgi.com>2006-01-06 00:11:19 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-06 08:33:28 -0800
commit070f80326a215d8e6c4fd6f175e28eb446c492bc (patch)
treee759fa446e9ad101bc2c7f77979fc5a5514aff70 /mm/page_alloc.c
parent02a68a5ebc7dd823da7496116f42290103e1e4a9 (diff)
downloadlinux-070f80326a215d8e6c4fd6f175e28eb446c492bc.tar.bz2
[PATCH] build_zonelists_node(): rename args
Give j and r meaningful names. Signed-off-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index ca978992c898..7f580779abdb 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -1460,25 +1460,25 @@ void show_free_areas(void)
* Add all populated zones of a node to the zonelist.
*/
static int __init build_zonelists_node(pg_data_t *pgdat,
- struct zonelist *zonelist, int j, int k)
+ struct zonelist *zonelist, int nr_zones, int zone_type)
{
struct zone *zone;
- BUG_ON(k > ZONE_HIGHMEM);
+ BUG_ON(zone_type > ZONE_HIGHMEM);
do {
- zone = pgdat->node_zones + k;
+ zone = pgdat->node_zones + zone_type;
if (populated_zone(zone)) {
#ifndef CONFIG_HIGHMEM
- BUG_ON(k > ZONE_NORMAL);
+ BUG_ON(zone_type > ZONE_NORMAL);
#endif
- zonelist->zones[j++] = zone;
- check_highest_zone(k);
+ zonelist->zones[nr_zones++] = zone;
+ check_highest_zone(zone_type);
}
- k--;
+ zone_type--;
- } while (k >= 0);
- return j;
+ } while (zone_type >= 0);
+ return nr_zones;
}
static inline int highest_zone(int zone_bits)