Skip to content

Commit 070f803

Browse files
Christoph LameterLinus Torvalds
authored andcommitted
[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>
1 parent 02a68a5 commit 070f803

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

‎mm/page_alloc.c‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,25 +1460,25 @@ void show_free_areas(void)
14601460
* Add all populated zones of a node to the zonelist.
14611461
*/
14621462
static int __init build_zonelists_node(pg_data_t *pgdat,
1463-
struct zonelist *zonelist, int j, int k)
1463+
struct zonelist *zonelist, int nr_zones, int zone_type)
14641464
{
14651465
struct zone *zone;
14661466

1467-
BUG_ON(k > ZONE_HIGHMEM);
1467+
BUG_ON(zone_type > ZONE_HIGHMEM);
14681468

14691469
do {
1470-
zone = pgdat->node_zones + k;
1470+
zone = pgdat->node_zones + zone_type;
14711471
if (populated_zone(zone)) {
14721472
#ifndef CONFIG_HIGHMEM
1473-
BUG_ON(k > ZONE_NORMAL);
1473+
BUG_ON(zone_type > ZONE_NORMAL);
14741474
#endif
1475-
zonelist->zones[j++] = zone;
1476-
check_highest_zone(k);
1475+
zonelist->zones[nr_zones++] = zone;
1476+
check_highest_zone(zone_type);
14771477
}
1478-
k--;
1478+
zone_type--;
14791479

1480-
} while (k >= 0);
1481-
return j;
1480+
} while (zone_type >= 0);
1481+
return nr_zones;
14821482
}
14831483

14841484
static inline int highest_zone(int zone_bits)

0 commit comments

Comments
 (0)