Re: [PATCH 1/3] add pfn_valid_within helper for sub-MAX_ORDER hole detection

2007-03-21 Thread Andrew Morton
On Thu, 22 Mar 2007 10:23:27 +1100 Nick Piggin <[EMAIL PROTECTED]> wrote: > Andy Whitcroft wrote: > > Generally we work under the assumption that memory the mem_map > > array is contigious and valid out to MAX_ORDER_NR_PAGES block > > of pages, ie. that if we have validated any page within this >

Re: [PATCH 1/3] add pfn_valid_within helper for sub-MAX_ORDER hole detection

2007-03-21 Thread Nick Piggin
Andy Whitcroft wrote: Generally we work under the assumption that memory the mem_map array is contigious and valid out to MAX_ORDER_NR_PAGES block of pages, ie. that if we have validated any page within this MAX_ORDER_NR_PAGES block we need not check any other. This is not true when

[PATCH 1/3] add pfn_valid_within helper for sub-MAX_ORDER hole detection

2007-03-21 Thread Andy Whitcroft
Generally we work under the assumption that memory the mem_map array is contigious and valid out to MAX_ORDER_NR_PAGES block of pages, ie. that if we have validated any page within this MAX_ORDER_NR_PAGES block we need not check any other. This is not true when CONFIG_HOLES_IN_ZONE is set and we

[PATCH 1/3] add pfn_valid_within helper for sub-MAX_ORDER hole detection

2007-03-21 Thread Andy Whitcroft
Generally we work under the assumption that memory the mem_map array is contigious and valid out to MAX_ORDER_NR_PAGES block of pages, ie. that if we have validated any page within this MAX_ORDER_NR_PAGES block we need not check any other. This is not true when CONFIG_HOLES_IN_ZONE is set and we

Re: [PATCH 1/3] add pfn_valid_within helper for sub-MAX_ORDER hole detection

2007-03-21 Thread Nick Piggin
Andy Whitcroft wrote: Generally we work under the assumption that memory the mem_map array is contigious and valid out to MAX_ORDER_NR_PAGES block of pages, ie. that if we have validated any page within this MAX_ORDER_NR_PAGES block we need not check any other. This is not true when

Re: [PATCH 1/3] add pfn_valid_within helper for sub-MAX_ORDER hole detection

2007-03-21 Thread Andrew Morton
On Thu, 22 Mar 2007 10:23:27 +1100 Nick Piggin [EMAIL PROTECTED] wrote: Andy Whitcroft wrote: Generally we work under the assumption that memory the mem_map array is contigious and valid out to MAX_ORDER_NR_PAGES block of pages, ie. that if we have validated any page within this