lkml.org 
[lkml]   [2005]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 4/4] Hugetlb: Copy on Write support
From
Date
On Wed, 2005-11-09 at 17:39 -0600, Adam Litke wrote:

>
> +#define huge_ptep_set_wrprotect(mm, addr, ptep) \
> + ptep_set_wrprotect(mm, addr, ptep)
> +static inline void set_huge_ptep_writable(struct vm_area_struct *vma,
> + unsigned long address, pte_t *ptep)
> +{
> + pte_t entry;
> +
> + entry = pte_mkwrite(pte_mkdirty(*ptep));
> + ptep_set_access_flags(vma, address, ptep, entry, 1);
> + update_mmu_cache(vma, address, entry);
> +}

lazy_mmu_prot_update will need to called here to make caches coherent
for some archs.

-rohit

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-11-10 02:49    [W:0.081 / U:5.036 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site