aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorDave Hansen <haveblue@us.ibm.com>2005-01-03 04:15:51 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-03 04:15:51 -0800
commit422e43d45514a352c5dd79dc56ca66da321d9075 (patch)
treeaf89fe7263f96edb405ea47cf6ae40e2f6b10d95 /mm
parentea86630e7e3d4d96a506e29adf8dcb0b44778908 (diff)
downloadhistory-422e43d45514a352c5dd79dc56ca66da321d9075.tar.gz
[PATCH] kill off highmem_start_page
People love to do comparisons with highmem_start_page. However, where CONFIG_HIGHMEM=y and there is no actual highmem, there's no real page at *highmem_start_page. That's usually not a problem, but CONFIG_NONLINEAR is a bit more strict and catches the bogus address tranlations. There are about a gillion different ways to find out of a 'struct page' is highmem or not. Why not just check page_flags? Just use PageHighMem() wherever there used to be a highmem_start_page comparison. Then, kill off highmem_start_page. This removes more code than it adds, and gets rid of some nasty #ifdefs in .c files. Signed-off-by: Dave Hansen <haveblue@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/memory.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/memory.c b/mm/memory.c
index d270caaf411957..a0f1b408e79e1c 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -76,11 +76,9 @@ unsigned long num_physpages;
* and ZONE_HIGHMEM.
*/
void * high_memory;
-struct page *highmem_start_page;
unsigned long vmalloc_earlyreserve;
EXPORT_SYMBOL(num_physpages);
-EXPORT_SYMBOL(highmem_start_page);
EXPORT_SYMBOL(high_memory);
EXPORT_SYMBOL(vmalloc_earlyreserve);