git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.5.x5
[linux-2.6.git]
/
arch
/
mips
/
mm
/
highmem.c
diff --git
a/arch/mips/mm/highmem.c
b/arch/mips/mm/highmem.c
index
24e3d3b
..
14b020d
100644
(file)
--- a/
arch/mips/mm/highmem.c
+++ b/
arch/mips/mm/highmem.c
@@
-8,7
+8,7
@@
void *__kmap(struct page *page)
void *addr;
might_sleep();
void *addr;
might_sleep();
- if (
page < highmem_start_page
)
+ if (
!PageHighMem(page)
)
return page_address(page);
addr = kmap_high(page);
flush_tlb_one((unsigned long)addr);
return page_address(page);
addr = kmap_high(page);
flush_tlb_one((unsigned long)addr);
@@
-20,7
+20,7
@@
void __kunmap(struct page *page)
{
if (in_interrupt())
BUG();
{
if (in_interrupt())
BUG();
- if (
page < highmem_start_page
)
+ if (
!PageHighMem(page)
)
return;
kunmap_high(page);
}
return;
kunmap_high(page);
}
@@
-41,7
+41,7
@@
void *__kmap_atomic(struct page *page, enum km_type type)
/* even !CONFIG_PREEMPT needs this, for in_atomic in do_page_fault */
inc_preempt_count();
/* even !CONFIG_PREEMPT needs this, for in_atomic in do_page_fault */
inc_preempt_count();
- if (
page < highmem_start_page
)
+ if (
!PageHighMem(page)
)
return page_address(page);
idx = type + KM_TYPE_NR*smp_processor_id();
return page_address(page);
idx = type + KM_TYPE_NR*smp_processor_id();