diff options
author | Badari Pulavarty <pbadari@us.ibm.com> | 2005-06-21 20:14:52 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-21 21:46:17 -0400 |
commit | cbe37d093707762fc0abb280781e6a82a9d8d568 (patch) | |
tree | 8af4a268765346655291f1ef27df12d11825269c /arch | |
parent | 73219d178051691a56d57184d8c7f6d0cbe3c5c1 (diff) |
[PATCH] mm: remove PG_highmem
Remove PG_highmem, to save a page flag. Use is_highmem() instead. It'll
generate a little more code, but we don't use PageHigheMem() in many places.
Signed-off-by: Badari Pulavarty <pbadari@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/frv/mm/init.c | 1 | ||||
-rw-r--r-- | arch/i386/mm/init.c | 1 | ||||
-rw-r--r-- | arch/mips/mm/init.c | 1 | ||||
-rw-r--r-- | arch/ppc/mm/init.c | 1 | ||||
-rw-r--r-- | arch/sparc/mm/init.c | 1 | ||||
-rw-r--r-- | arch/um/kernel/mem.c | 1 |
6 files changed, 0 insertions, 6 deletions
diff --git a/arch/frv/mm/init.c b/arch/frv/mm/init.c index 41958f57c838..79433159b5f0 100644 --- a/arch/frv/mm/init.c +++ b/arch/frv/mm/init.c | |||
@@ -169,7 +169,6 @@ void __init mem_init(void) | |||
169 | struct page *page = &mem_map[pfn]; | 169 | struct page *page = &mem_map[pfn]; |
170 | 170 | ||
171 | ClearPageReserved(page); | 171 | ClearPageReserved(page); |
172 | set_bit(PG_highmem, &page->flags); | ||
173 | set_page_count(page, 1); | 172 | set_page_count(page, 1); |
174 | __free_page(page); | 173 | __free_page(page); |
175 | totalram_pages++; | 174 | totalram_pages++; |
diff --git a/arch/i386/mm/init.c b/arch/i386/mm/init.c index 7a7ea3737265..8766c771bb45 100644 --- a/arch/i386/mm/init.c +++ b/arch/i386/mm/init.c | |||
@@ -269,7 +269,6 @@ void __init one_highpage_init(struct page *page, int pfn, int bad_ppro) | |||
269 | { | 269 | { |
270 | if (page_is_ram(pfn) && !(bad_ppro && page_kills_ppro(pfn))) { | 270 | if (page_is_ram(pfn) && !(bad_ppro && page_kills_ppro(pfn))) { |
271 | ClearPageReserved(page); | 271 | ClearPageReserved(page); |
272 | set_bit(PG_highmem, &page->flags); | ||
273 | set_page_count(page, 1); | 272 | set_page_count(page, 1); |
274 | __free_page(page); | 273 | __free_page(page); |
275 | totalhigh_pages++; | 274 | totalhigh_pages++; |
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index b027ce7efbc6..73843c528778 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c | |||
@@ -232,7 +232,6 @@ void __init mem_init(void) | |||
232 | #ifdef CONFIG_LIMITED_DMA | 232 | #ifdef CONFIG_LIMITED_DMA |
233 | set_page_address(page, lowmem_page_address(page)); | 233 | set_page_address(page, lowmem_page_address(page)); |
234 | #endif | 234 | #endif |
235 | set_bit(PG_highmem, &page->flags); | ||
236 | set_page_count(page, 1); | 235 | set_page_count(page, 1); |
237 | __free_page(page); | 236 | __free_page(page); |
238 | totalhigh_pages++; | 237 | totalhigh_pages++; |
diff --git a/arch/ppc/mm/init.c b/arch/ppc/mm/init.c index 363c157e3617..c8529d004cfa 100644 --- a/arch/ppc/mm/init.c +++ b/arch/ppc/mm/init.c | |||
@@ -469,7 +469,6 @@ void __init mem_init(void) | |||
469 | struct page *page = mem_map + pfn; | 469 | struct page *page = mem_map + pfn; |
470 | 470 | ||
471 | ClearPageReserved(page); | 471 | ClearPageReserved(page); |
472 | set_bit(PG_highmem, &page->flags); | ||
473 | set_page_count(page, 1); | 472 | set_page_count(page, 1); |
474 | __free_page(page); | 473 | __free_page(page); |
475 | totalhigh_pages++; | 474 | totalhigh_pages++; |
diff --git a/arch/sparc/mm/init.c b/arch/sparc/mm/init.c index a2dea69b2f07..ec2e05028a10 100644 --- a/arch/sparc/mm/init.c +++ b/arch/sparc/mm/init.c | |||
@@ -384,7 +384,6 @@ void map_high_region(unsigned long start_pfn, unsigned long end_pfn) | |||
384 | struct page *page = pfn_to_page(tmp); | 384 | struct page *page = pfn_to_page(tmp); |
385 | 385 | ||
386 | ClearPageReserved(page); | 386 | ClearPageReserved(page); |
387 | set_bit(PG_highmem, &page->flags); | ||
388 | set_page_count(page, 1); | 387 | set_page_count(page, 1); |
389 | __free_page(page); | 388 | __free_page(page); |
390 | totalhigh_pages++; | 389 | totalhigh_pages++; |
diff --git a/arch/um/kernel/mem.c b/arch/um/kernel/mem.c index c22825f13e40..5597bd39e6b5 100644 --- a/arch/um/kernel/mem.c +++ b/arch/um/kernel/mem.c | |||
@@ -53,7 +53,6 @@ static void setup_highmem(unsigned long highmem_start, | |||
53 | for(i = 0; i < highmem_len >> PAGE_SHIFT; i++){ | 53 | for(i = 0; i < highmem_len >> PAGE_SHIFT; i++){ |
54 | page = &mem_map[highmem_pfn + i]; | 54 | page = &mem_map[highmem_pfn + i]; |
55 | ClearPageReserved(page); | 55 | ClearPageReserved(page); |
56 | set_bit(PG_highmem, &page->flags); | ||
57 | set_page_count(page, 1); | 56 | set_page_count(page, 1); |
58 | __free_page(page); | 57 | __free_page(page); |
59 | } | 58 | } |