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

2017-05-23 Thread Punit Agrawal
Martin Schwidefsky writes: > On Mon, 22 May 2017 17:25:55 +0100 > Punit Agrawal 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

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

2017-05-23 Thread Punit Agrawal
Arnd Bergmann writes: > On Mon, May 22, 2017 at 6:25 PM, Punit Agrawal 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 >

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

2017-05-22 Thread Martin Schwidefsky
On Mon, 22 May 2017 17:25:55 +0100 Punit Agrawal 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 consi

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

2017-05-22 Thread Arnd Bergmann
On Mon, May 22, 2017 at 6:25 PM, Punit Agrawal 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 consisti

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

2017-05-22 Thread Punit Agrawal
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 ad