diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-09-01 10:54:15 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-09-17 18:54:59 -0700 |
commit | 568d0888b4db7a495ca23ae1e7203f2aed728113 (patch) | |
tree | 2a434c347550d5ccde9f96f97783b1c34636b207 /fs/xfs/xfs_bmap_util.c | |
parent | a05e3e06fde2da900244912aba713e65dc4c220c (diff) |
xfs: allow xfs_swap_range to use older extent swap algorithms
If userspace permits non-atomic swap operations, use the older code
paths to implement the same functionality.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_bmap_util.c')
-rw-r--r-- | fs/xfs/xfs_bmap_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_bmap_util.c b/fs/xfs/xfs_bmap_util.c index 9ffb0f6cb04f..002b63bef6e7 100644 --- a/fs/xfs/xfs_bmap_util.c +++ b/fs/xfs/xfs_bmap_util.c @@ -1252,7 +1252,7 @@ out_trans_cancel: * reject and log the attempt. basically we are putting the responsibility on * userspace to get this right. */ -static int +int xfs_swap_extents_check_format( struct xfs_inode *ip, /* target inode */ struct xfs_inode *tip) /* tmp inode */ @@ -1394,7 +1394,7 @@ xfs_swap_change_owner( } /* Swap the extents of two files by swapping data forks. */ -STATIC int +int xfs_swap_extent_forks( struct xfs_trans **tpp, struct xfs_swapext_req *req) |