[PATCH 5/8] mm: Add and use update_mmu_cache_pmd() in transparent huge page code.

2012-10-02 Thread David Miller
The transparent huge page code passes a PMD in as the third argument of update_mmu_cache(), which expects a PTE pointer. This never got noticed because X86 implements update_mmu_cache() as a macro and thus we don't get any type checking, and X86 is the only architecture which supports

[PATCH 5/8] mm: Add and use update_mmu_cache_pmd() in transparent huge page code.

2012-10-02 Thread David Miller
The transparent huge page code passes a PMD in as the third argument of update_mmu_cache(), which expects a PTE pointer. This never got noticed because X86 implements update_mmu_cache() as a macro and thus we don't get any type checking, and X86 is the only architecture which supports