diff options
Diffstat (limited to 'fs/xfs/xfs_ioctl.c')
-rw-r--r-- | fs/xfs/xfs_ioctl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c index ac4feae45eb3..4ee44ddfdfb7 100644 --- a/fs/xfs/xfs_ioctl.c +++ b/fs/xfs/xfs_ioctl.c | |||
@@ -631,7 +631,7 @@ xfs_ioc_space( | |||
631 | 631 | ||
632 | if (filp->f_flags & O_DSYNC) | 632 | if (filp->f_flags & O_DSYNC) |
633 | flags |= XFS_PREALLOC_SYNC; | 633 | flags |= XFS_PREALLOC_SYNC; |
634 | if (ioflags & XFS_IO_INVIS) | 634 | if (ioflags & XFS_IO_INVIS) |
635 | flags |= XFS_PREALLOC_INVISIBLE; | 635 | flags |= XFS_PREALLOC_INVISIBLE; |
636 | 636 | ||
637 | error = mnt_want_write_file(filp); | 637 | error = mnt_want_write_file(filp); |
@@ -643,6 +643,9 @@ xfs_ioc_space( | |||
643 | if (error) | 643 | if (error) |
644 | goto out_unlock; | 644 | goto out_unlock; |
645 | 645 | ||
646 | xfs_ilock(ip, XFS_MMAPLOCK_EXCL); | ||
647 | iolock |= XFS_MMAPLOCK_EXCL; | ||
648 | |||
646 | switch (bf->l_whence) { | 649 | switch (bf->l_whence) { |
647 | case 0: /*SEEK_SET*/ | 650 | case 0: /*SEEK_SET*/ |
648 | break; | 651 | break; |