提交 070f8032 编写于 作者: C Christoph Lameter 提交者: Linus Torvalds

[PATCH] build_zonelists_node(): rename args

Give j and r meaningful names.
Signed-off-by: NChristoph Lameter <clameter@sgi.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 02a68a5e
...@@ -1460,25 +1460,25 @@ void show_free_areas(void) ...@@ -1460,25 +1460,25 @@ void show_free_areas(void)
* Add all populated zones of a node to the zonelist. * Add all populated zones of a node to the zonelist.
*/ */
static int __init build_zonelists_node(pg_data_t *pgdat, 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; struct zone *zone;
BUG_ON(k > ZONE_HIGHMEM); BUG_ON(zone_type > ZONE_HIGHMEM);
do { do {
zone = pgdat->node_zones + k; zone = pgdat->node_zones + zone_type;
if (populated_zone(zone)) { if (populated_zone(zone)) {
#ifndef CONFIG_HIGHMEM #ifndef CONFIG_HIGHMEM
BUG_ON(k > ZONE_NORMAL); BUG_ON(zone_type > ZONE_NORMAL);
#endif #endif
zonelist->zones[j++] = zone; zonelist->zones[nr_zones++] = zone;
check_highest_zone(k); check_highest_zone(zone_type);
} }
k--; zone_type--;
} while (k >= 0); } while (zone_type >= 0);
return j; return nr_zones;
} }
static inline int highest_zone(int zone_bits) static inline int highest_zone(int zone_bits)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册