diff options
author | 2020-06-29 14:47:20 -0700 | |
---|---|---|
committer | 2020-07-06 10:46:57 -0700 | |
commit | 10b4bd6c9cbc1434c9aca523dac9c4313b56f1ae (patch) | |
tree | d4c86a34cef478c12050a4284b831b7ffc06616e /fs/xfs/xfs_file.c | |
parent | xfs: fix xfs_reflink_remap_prep calling conventions (diff) | |
download | linux-10b4bd6c9cbc1434c9aca523dac9c4313b56f1ae.tar.gz linux-10b4bd6c9cbc1434c9aca523dac9c4313b56f1ae.tar.bz2 linux-10b4bd6c9cbc1434c9aca523dac9c4313b56f1ae.zip |
xfs: refactor locking and unlocking two inodes against userspace IO
Refactor the two functions that we use to lock and unlock two inodes to
block userspace from initiating IO against a file, whether via system
calls or mmap activity.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_file.c')
-rw-r--r-- | fs/xfs/xfs_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index b375fae811f2..f189bdcbeddd 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c @@ -1065,7 +1065,7 @@ xfs_file_remap_range( if (mp->m_flags & XFS_MOUNT_WSYNC) xfs_log_force_inode(dest); out_unlock: - xfs_reflink_remap_unlock(file_in, file_out); + xfs_reflink_remap_unlock(src, dest); if (ret) trace_xfs_reflink_remap_range_error(dest, ret, _RET_IP_); return remapped > 0 ? remapped : ret; |