Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93957
b: refs/heads/master
c: 556637c
h: refs/heads/master
i:
  93955: 2bf7915
v: v3
  • Loading branch information
Johannes Weiner authored and Linus Torvalds committed Apr 28, 2008
1 parent 32d3046 commit 441e5c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: f022bfd58253099102218db5249220a7f4787114
refs/heads/master: 556637cdabcd5918c7d4a1a2679b8f86fc81e891
8 changes: 6 additions & 2 deletions trunk/mm/pagewalk.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ static int walk_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end,
int err = 0;

pte = pte_offset_map(pmd, addr);
do {
for (;;) {
err = walk->pte_entry(pte, addr, addr + PAGE_SIZE, private);
if (err)
break;
} while (pte++, addr += PAGE_SIZE, addr != end);
addr += PAGE_SIZE;
if (addr == end)
break;
pte++;
}

pte_unmap(pte);
return err;
Expand Down

0 comments on commit 441e5c7

Please sign in to comment.