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.
/* 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);