Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25030
b: refs/heads/master
c: 9df1dab
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller authored and David S. Miller committed Apr 1, 2006
1 parent 87c38eb commit 695dd84
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 73c50a27a453a5ed0d21ff23bd67c1dd6d864cb8
refs/heads/master: 9df1dab1df58ef20ef7df9b8f39d86cf5d2d1949
7 changes: 7 additions & 0 deletions trunk/arch/sparc64/mm/hugetlbpage.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,13 @@ pte_t *huge_pte_alloc(struct mm_struct *mm, unsigned long addr)
pmd_t *pmd;
pte_t *pte = NULL;

/* We must align the address, because our caller will run
* set_huge_pte_at() on whatever we return, which writes out
* all of the sub-ptes for the hugepage range. So we have
* to give it the first such sub-pte.
*/
addr &= HPAGE_MASK;

pgd = pgd_offset(mm, addr);
pud = pud_alloc(mm, pgd, addr);
if (pud) {
Expand Down

0 comments on commit 695dd84

Please sign in to comment.