Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83085
b: refs/heads/master
c: 08e7d9b
h: refs/heads/master
i:
  83083: f24413b
v: v3
  • Loading branch information
Martin Schwidefsky authored and Linus Torvalds committed Feb 5, 2008
1 parent 24df3b9 commit a08195b
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 5e5419734c8719cbc01af959ad9c0844002c0df5
refs/heads/master: 08e7d9b557299ba6ce57165ce8df310780bd681c
6 changes: 5 additions & 1 deletion trunk/mm/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
#define arch_mmap_check(addr, len, flags) (0)
#endif

#ifndef arch_rebalance_pgtables
#define arch_rebalance_pgtables(addr, len) (addr)
#endif

static void unmap_region(struct mm_struct *mm,
struct vm_area_struct *vma, struct vm_area_struct *prev,
unsigned long start, unsigned long end);
Expand Down Expand Up @@ -1424,7 +1428,7 @@ get_unmapped_area(struct file *file, unsigned long addr, unsigned long len,
if (addr & ~PAGE_MASK)
return -EINVAL;

return addr;
return arch_rebalance_pgtables(addr, len);
}

EXPORT_SYMBOL(get_unmapped_area);
Expand Down

0 comments on commit a08195b

Please sign in to comment.