summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_inode.h
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2015-02-23 10:47:29 (GMT)
committerDave Chinner <david@fromorbit.com>2015-02-23 10:47:29 (GMT)
commit723cac48473358939759885a18e8df113ea96138 (patch)
tree2733e572223f4b097fc282767394849d6522711b /fs/xfs/xfs_inode.h
parent0f9160b444e4de33b65dfcd3b901358a3129461a (diff)
downloadlinux-723cac48473358939759885a18e8df113ea96138.tar.xz
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