Andy Whitcroft
540557b943
sparsemem: record when a section has a valid mem_map
...
We have flags to indicate whether a section actually has a valid mem_map
associated with it. This is never set and we rely solely on the present bit
to indicate a section is valid. By definition a section is not valid if it
has no mem_map and there is a window during init where the present bit is set
but there is no mem_map, during which pfn_valid() will return true
incorrectly.
Use the existing SECTION_HAS_MEM_MAP flag to indicate the presence of a valid
mem_map. Switch valid_section{,_nr} and pfn_valid() to this bit. Add a new
present_section{,_nr} and pfn_present() interfaces for those users who care to
know that a section is going to be valid.
[akpm@linux-foundation.org: coding-syle fixes]
Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Cc: Christoph Lameter <clameter@sgi.com>
Cc: "Luck, Tony" <tony.luck@intel.com>
Cc: Andi Kleen <ak@suse.de>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-16 09:42:51 -07:00
..
2007-07-30 16:26:27 -03:00
2007-10-09 19:59:16 -07:00
2007-09-24 07:15:48 +02:00
2007-10-13 14:36:18 +01:00
2007-10-15 12:26:29 -07:00
2007-10-15 12:26:29 -07:00
2007-10-15 12:26:29 -07:00
2007-10-15 12:26:29 -07:00
2007-10-15 12:26:29 -07:00
2007-10-09 18:31:57 -04:00
2007-09-23 22:17:27 +02:00
2007-10-10 16:51:36 -07:00
2007-10-15 10:47:35 -07:00
2007-10-10 16:53:11 -07:00
2007-10-15 17:56:36 -07:00
2007-09-11 04:22:16 -07:00
2007-10-14 12:41:51 -07:00
2007-07-25 12:02:21 -07:00
2007-10-10 16:51:59 -07:00
2007-10-12 14:55:45 -04:00
2007-10-10 16:49:02 -07:00
2007-10-11 22:24:13 +01:00
2007-10-10 09:25:57 +02:00
2007-10-12 12:40:38 +02:00
2007-10-12 12:50:07 +02:00
2007-07-31 10:43:05 -05:00
2007-10-14 22:57:45 +02:00
2007-07-26 11:11:57 -07:00
2007-10-10 21:15:29 -07:00
2007-08-31 01:42:22 -07:00
2007-10-04 18:40:57 -04:00
2007-10-10 16:55:42 -07:00
2007-10-10 16:54:36 -07:00
2007-10-12 14:51:03 -07:00
2007-10-12 14:51:01 -07:00
2007-10-16 09:42:50 -07:00
2007-10-09 20:22:20 -04:00
2007-10-10 16:53:56 -07:00
2007-09-19 15:12:19 +10:00
2007-10-10 16:52:52 -07:00
2007-10-10 16:48:08 -07:00
2007-07-29 16:45:38 -07:00
2007-10-10 16:54:03 -07:00
2007-10-15 16:07:40 -07:00
2007-07-30 00:27:28 -07:00
2007-10-10 08:55:27 +01:00
2007-09-26 00:01:17 -04:00
2007-10-14 12:41:51 -07:00
2007-10-15 08:12:00 -07:00
2007-10-15 08:12:00 -07:00
2007-08-31 01:42:23 -07:00
2007-10-09 22:56:30 -04:00
2007-10-13 23:56:32 +02:00
2007-10-09 22:07:51 -03:00
2007-10-13 23:56:33 +02:00
2007-10-13 17:47:51 +02:00
2007-10-10 16:52:59 -07:00
2007-10-10 16:51:59 -07:00
2007-10-15 12:26:29 -07:00
2007-10-10 16:51:16 -07:00
2007-10-10 16:52:52 -07:00
2007-10-10 16:49:13 -07:00
2007-08-26 18:35:42 -07:00
2007-10-10 16:52:04 -07:00
2007-10-10 16:52:52 -07:00
2007-10-10 16:51:16 -07:00
2007-10-10 16:49:10 -07:00
2007-10-14 12:41:52 -07:00
2007-10-10 16:49:21 -07:00
2007-10-16 09:42:49 -07:00
2007-10-15 13:41:39 -07:00
2007-10-16 09:42:50 -07:00
2007-10-10 16:55:55 -07:00
2007-07-31 15:39:41 -07:00
2007-09-16 21:13:58 -07:00
2007-10-15 12:26:37 -07:00
2007-10-09 22:07:28 -03:00
2007-10-09 22:07:23 -03:00
2007-10-15 17:56:36 -07:00
2007-10-16 09:42:49 -07:00
2007-08-22 19:52:45 -07:00
2007-08-26 18:35:34 -07:00
2007-07-31 15:39:40 -07:00
2007-10-15 17:00:19 +02:00
2007-10-12 12:40:38 +02:00
2007-10-12 21:27:47 -04:00
2007-10-12 14:51:12 -07:00
2007-10-10 16:48:12 -07:00
2007-10-13 10:18:29 +02:00
2007-09-11 22:24:45 +01:00
2007-07-26 11:35:17 -07:00
2007-07-26 11:35:17 -07:00
2007-07-28 19:54:33 -07:00
2007-10-12 14:55:47 -04:00
2007-10-10 16:51:35 -07:00
2007-10-11 22:11:12 +02:00
2007-09-21 15:55:55 +09:00
2007-10-10 16:54:03 -07:00
2007-09-19 11:24:18 -07:00
2007-08-22 19:52:45 -07:00
2007-10-16 09:42:51 -07:00
2007-10-13 23:56:29 +02:00
2007-10-11 22:11:12 +02:00
2007-10-10 16:49:07 -07:00
2007-10-13 09:52:26 -07:00
2007-10-15 12:26:29 -07:00
2007-10-15 12:26:29 -07:00
2007-10-10 21:15:29 -07:00
2007-10-10 16:48:06 -07:00
2007-10-09 17:20:52 -04:00
2007-10-09 17:15:11 -04:00
2007-10-09 17:19:15 -04:00
2007-10-10 16:52:14 -07:00
2007-07-31 02:28:15 -07:00
2007-10-10 16:49:04 -07:00
2007-08-17 11:01:58 +10:00
2007-10-16 09:42:50 -07:00
2007-10-12 15:03:18 -07:00
2007-10-12 15:03:18 -07:00
2007-10-10 16:53:50 -07:00
2007-10-10 16:53:55 -07:00
2007-10-10 16:49:20 -07:00
2007-10-12 14:51:07 -07:00
2007-07-30 12:25:49 -07:00
2007-08-25 16:58:27 +10:00
2007-07-26 11:35:21 -07:00
2007-07-26 11:35:21 -07:00
2007-09-11 17:21:20 -07:00
2007-07-26 13:40:43 +02:00
2007-10-10 16:49:22 -07:00
2007-10-11 22:11:12 +02:00
2007-10-14 12:41:52 -07:00
2007-07-28 19:42:22 -07:00
2007-10-10 16:54:11 -07:00
2007-10-10 21:22:05 -07:00
2007-10-15 17:00:19 +02:00
2007-10-10 16:51:28 -07:00
2007-10-14 12:41:51 -07:00
2007-08-22 19:52:45 -07:00
2007-08-22 19:52:47 -07:00
2007-10-10 16:55:33 -07:00
2007-10-16 09:42:50 -07:00
2007-08-22 19:52:44 -07:00
2007-09-20 13:19:59 -07:00
2007-10-15 14:06:58 -07:00
2007-08-31 01:09:21 -07:00
2007-10-10 16:52:39 -07:00
2007-10-14 12:41:51 -07:00
2007-07-29 16:45:38 -07:00
2007-10-10 09:25:57 +02:00
2007-07-31 15:39:39 -07:00
2007-10-12 14:51:12 -07:00
2007-10-15 12:59:43 -07:00
2007-07-25 10:17:44 -07:00
2007-10-15 17:00:19 +02:00
2007-10-12 14:51:09 -07:00
2007-10-12 14:55:34 -07:00
2007-09-19 11:24:18 -07:00
2007-10-12 14:51:04 -07:00
2007-10-09 22:07:04 -03:00
2007-10-15 10:47:35 -07:00
2007-10-12 14:05:17 +10:00
2007-10-10 16:53:57 -07:00