diff --git a/fs/xfs/linux/xfs_file.c b/fs/xfs/linux/xfs_file.c index 04f194dc63d5fc097147e6bb7dd87d8df3caf89e..919d70abd9e8b9909b2dc48558bdd34077f19400 100644 --- a/fs/xfs/linux/xfs_file.c +++ b/fs/xfs/linux/xfs_file.c @@ -488,7 +488,7 @@ linvfs_mprotect( if ((vp->v_type == VREG) && (vp->v_vfsp->vfs_flag & VFS_DMI)) { if ((vma->vm_flags & VM_MAYSHARE) && - (newflags & PROT_WRITE) && !(vma->vm_flags & PROT_WRITE)) { + (newflags & VM_WRITE) && !(vma->vm_flags & VM_WRITE)) { xfs_mount_t *mp = XFS_VFSTOM(vp->v_vfsp); error = XFS_SEND_MMAP(mp, vma, VM_WRITE);