Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62447
b: refs/heads/master
c: 9585116
h: refs/heads/master
i:
  62445: d6fa2e2
  62443: f5bfc03
  62439: 0dbe477
  62431: 8738b80
v: v3
  • Loading branch information
Jeremy Fitzhardinge authored and Linus Torvalds committed Jul 22, 2007
1 parent 7cbfb95 commit de8d9cc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a2900975ef3f1df33c83e750cc1e490de3374ca8
refs/heads/master: 9585116ba09f1d8c52d0a1346e20bb9d443e9c02
2 changes: 1 addition & 1 deletion trunk/arch/i386/mm/ioremap.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ void iounmap(volatile void __iomem *addr)
/* Reset the direct mapping. Can block */
if ((p->flags >> 20) && p->phys_addr < virt_to_phys(high_memory) - 1) {
change_page_attr(virt_to_page(__va(p->phys_addr)),
p->size >> PAGE_SHIFT,
get_vm_area_size(p) >> PAGE_SHIFT,
PAGE_KERNEL);
global_flush_tlb();
}
Expand Down
7 changes: 7 additions & 0 deletions trunk/include/linux/vmalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ void vmalloc_sync_all(void);
/*
* Lowlevel-APIs (not for driver use!)
*/

static inline size_t get_vm_area_size(const struct vm_struct *area)
{
/* return actual size without guard page */
return area->size - PAGE_SIZE;
}

extern struct vm_struct *get_vm_area(unsigned long size, unsigned long flags);
extern struct vm_struct *__get_vm_area(unsigned long size, unsigned long flags,
unsigned long start, unsigned long end);
Expand Down

0 comments on commit de8d9cc

Please sign in to comment.