aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_ioctl.c')
-rw-r--r--fs/xfs/xfs_ioctl.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c
index 89fb1eb80aae..4151fade4bb1 100644
--- a/fs/xfs/xfs_ioctl.c
+++ b/fs/xfs/xfs_ioctl.c
@@ -614,7 +614,7 @@ xfs_ioc_space(
614 struct xfs_inode *ip = XFS_I(inode); 614 struct xfs_inode *ip = XFS_I(inode);
615 struct iattr iattr; 615 struct iattr iattr;
616 enum xfs_prealloc_flags flags = 0; 616 enum xfs_prealloc_flags flags = 0;
617 uint iolock = XFS_IOLOCK_EXCL; 617 uint iolock = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL;
618 int error; 618 int error;
619 619
620 /* 620 /*
@@ -648,9 +648,6 @@ xfs_ioc_space(
648 if (error) 648 if (error)
649 goto out_unlock; 649 goto out_unlock;
650 650
651 xfs_ilock(ip, XFS_MMAPLOCK_EXCL);
652 iolock |= XFS_MMAPLOCK_EXCL;
653
654 switch (bf->l_whence) { 651 switch (bf->l_whence) {
655 case 0: /*SEEK_SET*/ 652 case 0: /*SEEK_SET*/
656 break; 653 break;