diff options
author | Dave Chinner <dchinner@redhat.com> | 2015-02-23 13:47:29 +0300 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2015-02-23 13:47:29 +0300 |
commit | 723cac48473358939759885a18e8df113ea96138 (patch) | |
tree | 2733e572223f4b097fc282767394849d6522711b /fs/xfs/xfs_super.c | |
parent | 0f9160b444e4de33b65dfcd3b901358a3129461a (diff) | |
download | linux-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_super.c')
0 files changed, 0 insertions, 0 deletions