On Mon, May 22, 2017 at 6:25 PM, Punit Agrawal <punit.agra...@arm.com> wrote: > When unmapping a hugepage range, huge_pte_clear() is used to clear the > page table entries that are marked as not present. huge_pte_clear() > internally just ends up calling pte_clear() which does not correctly > deal with hugepages consisting of contiguous page table entries. > > Add a size argument to address this issue and allow architectures to > override huge_pte_clear() by wrapping it in a #ifndef block. > > Update s390 implementation with the size parameter as well. > > Note that the change only affects huge_pte_clear() - the other generic > hugetlb functions don't need any change. > > Signed-off-by: Punit Agrawal <punit.agra...@arm.com> > Cc: Martin Schwidefsky <schwidef...@de.ibm.com> > Cc: Heiko Carstens <heiko.carst...@de.ibm.com> > Cc: Arnd Bergmann <a...@arndb.de> > Cc: "Aneesh Kumar K.V" <aneesh.ku...@linux.vnet.ibm.com> > Cc: Mike Kravetz <mike.krav...@oracle.com>
Acked-by: Arnd Bergmann <a...@arndb.de>