Thread (15 messages) 15 messages, 5 authors, 2017-05-23

[PATCH v3.1 4/6] mm/hugetlb: Allow architectures to override huge_pte_clear()

From: arnd@arndb.de (Arnd Bergmann)
Date: 2017-05-22 20:34:50
Also in: linux-arch, linux-mm, lkml

On Mon, May 22, 2017 at 6:25 PM, Punit Agrawal [off-list ref] 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 <redacted>
Cc: Martin Schwidefsky <redacted>
Cc: Heiko Carstens <redacted>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: "Aneesh Kumar K.V" <redacted>
Cc: Mike Kravetz <redacted>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help