summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-03-31 21:50:47 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-03-31 21:50:47 -0800
commit8d507e4ebbedba393e2385dd73b9c1ee480a6acf (patch)
treedc7fb22faf12673c073707b6a5d0e89fbc2b4ebc
parente9acfc13953a90f474b88e1c0bd4cb7071a65e35 (diff)
[PATCH] ppc64: add useful warning message in hugepage code
From: David Gibson <david@gibson.dropbear.id.au> This patch adds a debugging message to the ppc64 hugepage code when we attempt to open the "low" (32-bit) hugepage window on PPC64, but can't because a (non-hugepage) mapping already exists in the region.
-rw-r--r--arch/ppc64/mm/hugetlbpage.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/ppc64/mm/hugetlbpage.c b/arch/ppc64/mm/hugetlbpage.c
index 3a50af4962dd..ed3d4ce2e590 100644
--- a/arch/ppc64/mm/hugetlbpage.c
+++ b/arch/ppc64/mm/hugetlbpage.c
@@ -253,8 +253,11 @@ static int open_32bit_htlbpage_range(struct mm_struct *mm)
/* Check no VMAs are in the region */
vma = find_vma(mm, TASK_HPAGE_BASE_32);
- if (vma && (vma->vm_start < TASK_HPAGE_END_32))
+ if (vma && (vma->vm_start < TASK_HPAGE_END_32)) {
+ printk(KERN_DEBUG "Low HTLB region busy: PID=%d vma @ %lx-%lx\n",
+ current->pid, vma->vm_start, vma->vm_end);
return -EBUSY;
+ }
/* Clean up any leftover PTE pages in the region */
spin_lock(&mm->page_table_lock);