summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode.h
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2015-02-23 11:47:29 +0100
committerDave Chinner <david@fromorbit.com>2015-02-23 11:47:29 +0100
commit723cac48473358939759885a18e8df113ea96138 (patch)
tree2733e572223f4b097fc282767394849d6522711b /fs/xfs/xfs_inode.h
parentxfs: xfs_setattr_size no longer races with page faults (diff)
downloadlinux-723cac48473358939759885a18e8df113ea96138.tar.xz
linux-723cac48473358939759885a18e8df113ea96138.zip
xfs: lock out page faults from extent swap operations
Extent swap operations are another extent manipulation operation that we need to ensure does not race against mmap page faults. The current code returns if the file is mapped prior to the swap being done, but it could potentially race against new page faults while the swap is in progress. Hence we should use the XFS_MMAPLOCK_EXCL for this operation, too. While there, fix the error path handling that can result in double unlocks of the inodes when cancelling the swapext transaction. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_inode.h')
0 files changed, 0 insertions, 0 deletions