Commit 8d507e4e authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[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.
parent e9acfc13
...@@ -253,8 +253,11 @@ static int open_32bit_htlbpage_range(struct mm_struct *mm) ...@@ -253,8 +253,11 @@ static int open_32bit_htlbpage_range(struct mm_struct *mm)
/* Check no VMAs are in the region */ /* Check no VMAs are in the region */
vma = find_vma(mm, TASK_HPAGE_BASE_32); 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; return -EBUSY;
}
/* Clean up any leftover PTE pages in the region */ /* Clean up any leftover PTE pages in the region */
spin_lock(&mm->page_table_lock); spin_lock(&mm->page_table_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment