]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm/hugetlb/book3s: add _PAGE_PRESENT to hugepd pointer.
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Thu, 20 Sep 2018 18:09:43 +0000 (23:39 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 3 Oct 2018 05:39:58 +0000 (15:39 +1000)
commiteeb3cdf92b57ff3be55a72dc4db8984d938c48f0
tree4760438268ba749314c12e1640891a0eac917f5a
parentc8aeea9ef32a497a75042ec2ec47862a7d9e41fb
powerpc/mm/hugetlb/book3s: add _PAGE_PRESENT to hugepd pointer.

This make hugetlb directory pointer similar to other page able entries. A hugepd
entry is identified by lack of _PAGE_PTE bit set and directory size stored in
HUGEPD_SHIFT_MASK. We update that to also look at _PAGE_PRESENT

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/hash-4k.h
arch/powerpc/include/asm/book3s/64/hugetlb.h
arch/powerpc/mm/hugetlbpage.c