powerpc/64s: Fix page table fragment refcount race vs speculative references
[sfrench/cifs-2.6.git] / include / linux / mm_types.h
index 99ce070e7dcb4fb14af6897d2804b671eb0ff4e2..22651e124071f3cf602396766ae77685266a5582 100644 (file)
@@ -139,7 +139,10 @@ struct page {
                        unsigned long _pt_pad_1;        /* compound_head */
                        pgtable_t pmd_huge_pte; /* protected by page->ptl */
                        unsigned long _pt_pad_2;        /* mapping */
-                       struct mm_struct *pt_mm;        /* x86 pgds only */
+                       union {
+                               struct mm_struct *pt_mm; /* x86 pgds only */
+                               atomic_t pt_frag_refcount; /* powerpc */
+                       };
 #if ALLOC_SPLIT_PTLOCKS
                        spinlock_t *ptl;
 #else