Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 16336
b: refs/heads/master
c: 070f803
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed Jan 6, 2006
1 parent 969de83 commit ad3143e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 02a68a5ebc7dd823da7496116f42290103e1e4a9
refs/heads/master: 070f80326a215d8e6c4fd6f175e28eb446c492bc
18 changes: 9 additions & 9 deletions trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ad3143e

Please sign in to comment.