diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index 47d25a5e1933..3883c11dc32a 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h @@ -1267,7 +1267,8 @@ static inline bool __vma_shareable_lock(struct vm_area_struct *vma) static inline bool __vma_private_lock(struct vm_area_struct *vma) { - return (!(vma->vm_flags & VM_MAYSHARE)) && vma->vm_private_data; + return (!(vma->vm_flags & VM_MAYSHARE)) && vma->vm_private_data && + ((vma->vm_private_data & HPAGE_RESV_OWNER) != 0); } /*