powerpc/mm: Don't open code pgtable_t size
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 1 Dec 2015 03:37:00 +0000 (09:07 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 14 Dec 2015 04:19:17 +0000 (15:19 +1100)
commit0a58f659f1b2613d00edb3979c8c09ccc57226fb
tree852238526c85dd60f20e11c8f4c9be8f082bc7b2
parentd0808c4a2cec2b2dd0ec0236220a3236a411495e
powerpc/mm: Don't open code pgtable_t size

The slot information of base page size hash pte is stored in the
pgtable_t w.r.t transparent hugepage. We need to make sure we don't
index beyond pgtable_t size.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/hugepage-hash64.c