Files
linux-st/include/linux
Andy Whitcroft 14e0729841 add pfn_valid_within helper for sub-MAX_ORDER hole detection
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 must
check each and every reference we make from a pfn.

Add a pfn_valid_within() helper which should be used when scanning pages
within a MAX_ORDER_NR_PAGES block when we have already checked the validility
of the block normally with pfn_valid().  This can then be optimised away when
we do not have holes within a MAX_ORDER_NR_PAGES block of pages.

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Acked-by: Bob Picco <bob.picco@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-07 12:12:52 -07:00
..
2007-05-01 16:11:57 +02:00
2007-04-30 22:17:15 -07:00
2007-05-03 13:17:25 -07:00
2007-04-28 11:01:07 -04:00
2007-05-01 23:26:34 +02:00
2007-05-05 22:03:49 +02:00
2007-04-30 16:40:39 -07:00
2007-05-03 10:52:22 +03:00
2007-04-30 16:40:40 -07:00
2007-05-03 10:52:32 +03:00
2007-05-03 10:52:22 +03:00
2007-05-07 12:12:51 -07:00
2007-05-04 17:59:07 -07:00
2007-05-07 12:12:51 -07:00
2007-05-05 14:15:32 -07:00
2007-04-30 16:40:41 -07:00
2007-05-07 12:12:50 -07:00
2007-05-03 03:16:20 -07:00
2007-05-07 12:12:52 -07:00
2007-05-04 12:55:39 -07:00