Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207271
b: refs/heads/master
c: 57250a5
h: refs/heads/master
i:
  207269: 5cada8e
  207267: 8d9ae0f
  207263: c27daef
v: v3
  • Loading branch information
Jeremy Fitzhardinge authored and Linus Torvalds committed Aug 10, 2010
1 parent 2252f89 commit 5d8e89e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 58c37f6e0dfaaab85a3c11fcbf24451dfe70c721
refs/heads/master: 57250a5bf0f6ff68dc339572adbd881a11f366fa
5 changes: 2 additions & 3 deletions trunk/mm/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -2006,19 +2006,18 @@ int apply_to_page_range(struct mm_struct *mm, unsigned long addr,
{
pgd_t *pgd;
unsigned long next;
unsigned long start = addr, end = addr + size;
unsigned long end = addr + size;
int err;

BUG_ON(addr >= end);
mmu_notifier_invalidate_range_start(mm, start, end);
pgd = pgd_offset(mm, addr);
do {
next = pgd_addr_end(addr, end);
err = apply_to_pud_range(mm, pgd, addr, next, fn, data);
if (err)
break;
} while (pgd++, addr = next, addr != end);
mmu_notifier_invalidate_range_end(mm, start, end);

return err;
}
EXPORT_SYMBOL_GPL(apply_to_page_range);
Expand Down

0 comments on commit 5d8e89e

Please sign in to comment.