Re: [PATCH V3 1/2] mm: move vma_is_anonymous check within pmd_move_must_withdraw

From: mpe
Date: Mon Nov 14 2016 - 03:57:46 EST


"Aneesh Kumar K.V" <aneesh.kumar@xxxxxxxxxxxxxxxxxx> writes:

> Architectures like ppc64 want to use page table deposit/withraw
> even with huge pmd dax entries. Allow arch to override the
> vma_is_anonymous check by moving that to pmd_move_must_withdraw
> function
>
> Acked-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>
> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@xxxxxxxxxxxxxxxxxx>
> ---
> arch/powerpc/include/asm/book3s/64/pgtable.h | 3 ++-
> include/asm-generic/pgtable.h | 12 ------------
> mm/huge_memory.c | 18 ++++++++++++++++--
> 3 files changed, 18 insertions(+), 15 deletions(-)

Acked-by: Michael Ellerman <mpe@xxxxxxxxxxxxxx> (powerpc)

cheers