diff options
author | Dave Chinner <david@fromorbit.com> | 2015-02-23 18:27:47 -0500 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2015-02-23 18:27:47 -0500 |
commit | 88e8fda99a4c99a1a6482510655dbd88cccd221b (patch) | |
tree | b5f10ecc7c99ebf3eeb7a6733c15d3930b5f8a63 /fs/xfs/xfs_ioctl.c | |
parent | 4225441a1eec45241efe529d23403d8ca3d1d71b (diff) | |
parent | 723cac48473358939759885a18e8df113ea96138 (diff) |
Merge branch 'xfs-mmap-lock' into for-next
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; |