]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blobdiff - include/asm-generic/hugetlb.h
hugetlb: introduce generic version of huge_ptep_set_access_flags()
[mirror_ubuntu-eoan-kernel.git] / include / asm-generic / hugetlb.h
index 9b9039845278479119c996538f3d133250b64d9f..f3c99a03ee83bcaaf68cbe92ef5edc2936654b0e 100644 (file)
@@ -110,4 +110,13 @@ static inline void huge_ptep_set_wrprotect(struct mm_struct *mm,
 }
 #endif
 
+#ifndef __HAVE_ARCH_HUGE_PTEP_SET_ACCESS_FLAGS
+static inline int huge_ptep_set_access_flags(struct vm_area_struct *vma,
+               unsigned long addr, pte_t *ptep,
+               pte_t pte, int dirty)
+{
+       return ptep_set_access_flags(vma, addr, ptep, pte, dirty);
+}
+#endif
+
 #endif /* _ASM_GENERIC_HUGETLB_H */