+ zone-init-check-and-report-unaligned-zone-boundaries-fix-v2.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     zone init check and report unaligned zone boundaries fix v2

has been added to the -mm tree.  Its filename is

     zone-init-check-and-report-unaligned-zone-boundaries-fix-v2.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: zone init check and report unaligned zone boundaries fix v2
From: Andy Whitcroft <apw@xxxxxxxxxxxx>


We are reporting bad boundaries for the first zone which is allowed to be
missaligned because nodes are not allowed to be missaligned, and zones
which have zero size.  Cull them.

Signed-off-by: Andy Whitcroft <apw@xxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 mm/page_alloc.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff -puN mm/page_alloc.c~zone-init-check-and-report-unaligned-zone-boundaries-fix-v2 mm/page_alloc.c
--- devel/mm/page_alloc.c~zone-init-check-and-report-unaligned-zone-boundaries-fix-v2	2006-05-18 12:29:14.000000000 -0700
+++ devel-akpm/mm/page_alloc.c	2006-05-18 12:29:14.000000000 -0700
@@ -2079,10 +2079,6 @@ static void __init free_area_init_core(s
 		struct zone *zone = pgdat->node_zones + j;
 		unsigned long size, realsize;
 
-		if (zone_boundary_align_pfn(zone_start_pfn) != zone_start_pfn)
-			printk(KERN_CRIT "node %d zone %s misaligned "
-					"start pfn\n", nid, zone_names[j]);
-
 		realsize = size = zones_size[j];
 		if (zholes_size)
 			realsize -= zholes_size[j];
@@ -2091,6 +2087,11 @@ static void __init free_area_init_core(s
 			nr_kernel_pages += realsize;
 		nr_all_pages += realsize;
 
+		if (zone_boundary_align_pfn(zone_start_pfn) !=
+					zone_start_pfn && j != 0 && size != 0)
+			printk(KERN_CRIT "node %d zone %s misaligned "
+					"start pfn\n", nid, zone_names[j]);
+
 		zone->spanned_pages = size;
 		zone->present_pages = realsize;
 		zone->name = zone_names[j];
_

Patches currently in -mm which might be from apw@xxxxxxxxxxxx are

origin.patch
sparsemem-incorrectly-calculates-section-number.patch
zone-init-check-and-report-unaligned-zone-boundaries.patch
zone-init-check-and-report-unaligned-zone-boundaries-fix-v2.patch
x86-align-highmem-zone-boundaries-with-numa.patch
zone-allow-unaligned-zone-boundaries.patch
pg_uncached-is-ia64-only.patch
squash-duplicate-page_to_pfn-and-pfn_to_page.patch
introduce-mechanism-for-registering-active-regions-of-memory.patch
have-power-use-add_active_range-and-free_area_init_nodes.patch
have-x86-use-add_active_range-and-free_area_init_nodes.patch
have-x86_64-use-add_active_range-and-free_area_init_nodes.patch
sparsemem-record-nid-during-memory-present.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux