From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Hansen Subject: Re: [linux-pm] [PATCH] hibernation should work ok with memory hotplug Date: Wed, 05 Nov 2008 08:23:43 -0800 Message-ID: <1225902223.12673.616.camel@nimitz> References: <20081029105956.GA16347@atrey.karlin.mff.cuni.cz> <20081103125108.46d0639e.akpm@linux-foundation.org> <1225747308.12673.486.camel@nimitz> <200811032324.02163.rjw@sisk.pl> <1225751665.12673.511.camel@nimitz> <1225771353.6755.16.camel@nigel-laptop> <1225782572.12673.540.camel@nimitz> <1225783837.6755.33.camel@nigel-laptop> <1225785224.12673.564.camel@nimitz> <1225876205.6755.55.camel@nigel-laptop> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1225876205.6755.55.camel@nigel-laptop> Sender: linux-kernel-owner@vger.kernel.org To: Nigel Cunningham Cc: Matt Tolentino , linux-pm@lists.osdl.org, Dave Hansen , linux-kernel@vger.kernel.org, linux-mm@kvack.org, pavel@suse.cz, Mel Gorman , Andy Whitcroft , Andrew Morton List-Id: linux-pm@vger.kernel.org On Wed, 2008-11-05 at 20:10 +1100, Nigel Cunningham wrote: > In your example above, zone_start_pfn will be 1, won't it? If that's the > case, I shouldn't need to subtract ARCH_PFN_OFFSET to get the right > index within the zone and avoid the same wastage that ARCH_PFN_OFFSET > avoids with mem_map. Yeah, I don't think the first zone will ever start before ARCH_PFN_OFFSET. If the code just deals with starting at any random zone_start_pfn and going to any other random zone_end_pfn without any waste, then it should be fine in the presence of ARCH_PFN_OFFSET. The only trouble is if it assumes memory to start at 0x0. -- Dave