diff options
| author | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-11-22 13:06:44 -0500 |
|---|---|---|
| committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-11-22 13:06:44 -0500 |
| commit | 0bd2af46839ad6262d25714a6ec0365db9d6b98f (patch) | |
| tree | dcced72d230d69fd0c5816ac6dd03ab84799a93e /arch/powerpc/mm/hugetlbpage.c | |
| parent | e138a5d2356729b8752e88520cc1525fae9794ac (diff) | |
| parent | f26b90440cd74c78fe10c9bd5160809704a9627c (diff) | |
Merge ../scsi-rc-fixes-2.6
Diffstat (limited to 'arch/powerpc/mm/hugetlbpage.c')
| -rw-r--r-- | arch/powerpc/mm/hugetlbpage.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powerpc/mm/hugetlbpage.c index 5615acc29527..506d89768d45 100644 --- a/arch/powerpc/mm/hugetlbpage.c +++ b/arch/powerpc/mm/hugetlbpage.c | |||
| @@ -480,9 +480,6 @@ static int open_high_hpage_areas(struct mm_struct *mm, u16 newareas) | |||
| 480 | 480 | ||
| 481 | mm->context.high_htlb_areas |= newareas; | 481 | mm->context.high_htlb_areas |= newareas; |
| 482 | 482 | ||
| 483 | /* update the paca copy of the context struct */ | ||
| 484 | get_paca()->context = mm->context; | ||
| 485 | |||
| 486 | /* the context change must make it to memory before the flush, | 483 | /* the context change must make it to memory before the flush, |
| 487 | * so that further SLB misses do the right thing. */ | 484 | * so that further SLB misses do the right thing. */ |
| 488 | mb(); | 485 | mb(); |
| @@ -494,11 +491,15 @@ static int open_high_hpage_areas(struct mm_struct *mm, u16 newareas) | |||
| 494 | return 0; | 491 | return 0; |
| 495 | } | 492 | } |
| 496 | 493 | ||
| 497 | int prepare_hugepage_range(unsigned long addr, unsigned long len) | 494 | int prepare_hugepage_range(unsigned long addr, unsigned long len, pgoff_t pgoff) |
| 498 | { | 495 | { |
| 499 | int err = 0; | 496 | int err = 0; |
| 500 | 497 | ||
| 501 | if ( (addr+len) < addr ) | 498 | if (pgoff & (~HPAGE_MASK >> PAGE_SHIFT)) |
| 499 | return -EINVAL; | ||
| 500 | if (len & ~HPAGE_MASK) | ||
| 501 | return -EINVAL; | ||
| 502 | if (addr & ~HPAGE_MASK) | ||
| 502 | return -EINVAL; | 503 | return -EINVAL; |
| 503 | 504 | ||
| 504 | if (addr < 0x100000000UL) | 505 | if (addr < 0x100000000UL) |
