Re: [RFC patch 2/7] thp: introduce pmdp_invalidate()

Hillf Danton
2012-08-25T12:36:46Z

On Fri, Aug 24, 2012 at 1:17 AM, Gerald Schaefer
<gerald.schaefer@de.ibm.com> wrote:

> +#ifndef __HAVE_ARCH_PMDP_INVALIDATE
> +#ifdef CONFIG_TRANSPARENT_HUGEPAGE
> +static inline void pmdp_invalidate(struct vm_area_struct *vma,
> + unsigned long address, pmd_t *pmdp)
> +{
> + set_pmd_at(vma->vm_mm, address, pmd, pmd_mknotpresent(*pmd));

set_pmd_at(vma->vm_mm, address, pmdp, pmd_mknotpresent(*pmdp)); yes?

> + flush_tlb_range(vma, address, address + HPAGE_PMD_SIZE);
> +}