diff options
author | 2020-06-29 14:47:20 -0700 | |
---|---|---|
committer | 2020-07-06 10:46:57 -0700 | |
commit | e2aaee9cd34d8396a48abf0b1be81a464c1d51c5 (patch) | |
tree | c4fb88e06b3541ae2bcbf610c5abbc7bfab63f71 /fs/xfs/xfs_file.c | |
parent | xfs: refactor locking and unlocking two inodes against userspace IO (diff) | |
download | linux-e2aaee9cd34d8396a48abf0b1be81a464c1d51c5.tar.gz linux-e2aaee9cd34d8396a48abf0b1be81a464c1d51c5.tar.bz2 linux-e2aaee9cd34d8396a48abf0b1be81a464c1d51c5.zip |
xfs: move helpers that lock and unlock two inodes against userspace IO
Move the double-inode locking helpers to xfs_inode.c since they're not
specific to reflink.
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 f189bdcbeddd..97aa74800bd9 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(src, dest); + xfs_iunlock2_io_mmap(src, dest); if (ret) trace_xfs_reflink_remap_range_error(dest, ret, _RET_IP_); return remapped > 0 ? remapped : ret; |