diff options
| author | Olof Johansson <olof@lixom.net> | 2012-11-25 21:34:34 -0800 | 
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2012-11-25 21:34:34 -0800 | 
| commit | 0f9cb211ba5db93d488fe6b154138231fdd0e22d (patch) | |
| tree | 293871b042e9ebc49b1d783f1b110eef541ddc97 /mm/page_alloc.c | |
| parent | 007108a2279123ad6639b6c653ad1a731febb60f (diff) | |
| parent | 9489e9dcae718d5fde988e4a684a0f55b5f94d17 (diff) | |
| download | olio-linux-3.10-0f9cb211ba5db93d488fe6b154138231fdd0e22d.tar.xz olio-linux-3.10-0f9cb211ba5db93d488fe6b154138231fdd0e22d.zip  | |
Merge tag 'v3.7-rc7' into next/cleanup
Merging in mainline back to next/cleanup since it has collected a few
conflicts between fixes going upstream and some of the cleanup patches.
Git doesn't auto-resolve some of them, and they're mostly noise so let's
take care of it locally.
Conflicts are in:
	arch/arm/mach-omap2/omap_hwmod_44xx_data.c
	arch/arm/plat-omap/i2c.c
	drivers/video/omap2/dss/dss.c
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'mm/page_alloc.c')
| -rw-r--r-- | mm/page_alloc.c | 38 | 
1 files changed, 2 insertions, 36 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 5b74de6702e..bcb72c6e2b2 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -1405,7 +1405,7 @@ int capture_free_page(struct page *page, int alloc_order, int migratetype)  	mt = get_pageblock_migratetype(page);  	if (unlikely(mt != MIGRATE_ISOLATE)) -		__mod_zone_freepage_state(zone, -(1UL << order), mt); +		__mod_zone_freepage_state(zone, -(1UL << alloc_order), mt);  	if (alloc_order != order)  		expand(zone, page, alloc_order, order, @@ -4505,7 +4505,7 @@ static void __paginginit free_area_init_core(struct pglist_data *pgdat,  		zone->zone_pgdat = pgdat;  		zone_pcp_init(zone); -		lruvec_init(&zone->lruvec, zone); +		lruvec_init(&zone->lruvec);  		if (!size)  			continue; @@ -6098,37 +6098,3 @@ void dump_page(struct page *page)  	dump_page_flags(page->flags);  	mem_cgroup_print_bad_page(page);  } - -/* reset zone->present_pages */ -void reset_zone_present_pages(void) -{ -	struct zone *z; -	int i, nid; - -	for_each_node_state(nid, N_HIGH_MEMORY) { -		for (i = 0; i < MAX_NR_ZONES; i++) { -			z = NODE_DATA(nid)->node_zones + i; -			z->present_pages = 0; -		} -	} -} - -/* calculate zone's present pages in buddy system */ -void fixup_zone_present_pages(int nid, unsigned long start_pfn, -				unsigned long end_pfn) -{ -	struct zone *z; -	unsigned long zone_start_pfn, zone_end_pfn; -	int i; - -	for (i = 0; i < MAX_NR_ZONES; i++) { -		z = NODE_DATA(nid)->node_zones + i; -		zone_start_pfn = z->zone_start_pfn; -		zone_end_pfn = zone_start_pfn + z->spanned_pages; - -		/* if the two regions intersect */ -		if (!(zone_start_pfn >= end_pfn	|| zone_end_pfn <= start_pfn)) -			z->present_pages += min(end_pfn, zone_end_pfn) - -					    max(start_pfn, zone_start_pfn); -	} -}  |