summaryrefslogtreecommitdiff
path: root/arch/powerpc/mm/pgtable-frag.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/mm/pgtable-frag.c')
-rw-r--r--arch/powerpc/mm/pgtable-frag.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/mm/pgtable-frag.c b/arch/powerpc/mm/pgtable-frag.c
index d61e7c2a9a79..7544d0d7177d 100644
--- a/arch/powerpc/mm/pgtable-frag.c
+++ b/arch/powerpc/mm/pgtable-frag.c
@@ -34,6 +34,9 @@ static pte_t *get_pte_from_cache(struct mm_struct *mm)
{
void *pte_frag, *ret;
+ if (PTE_FRAG_NR == 1)
+ return NULL;
+
spin_lock(&mm->page_table_lock);
ret = mm->context.pte_frag;
if (ret) {