xfs: clean up the error handling in xfs_swap_extents