mm: memory: add orig_pmd to struct vm_fault
[linux-block.git] / include / linux / mm.h
index aa875dacd9c3253985efbd4f5b9dac11bcf6c2af..3cbd2d6d248e0603aa0b0157e4c3e2f531c9b1c2 100644 (file)
@@ -550,7 +550,12 @@ struct vm_fault {
        pud_t *pud;                     /* Pointer to pud entry matching
                                         * the 'address'
                                         */
-       pte_t orig_pte;                 /* Value of PTE at the time of fault */
+       union {
+               pte_t orig_pte;         /* Value of PTE at the time of fault */
+               pmd_t orig_pmd;         /* Value of PMD at the time of fault,
+                                        * used by PMD fault only.
+                                        */
+       };
 
        struct page *cow_page;          /* Page handler may use for COW fault */
        struct page *page;              /* ->fault handlers should return a