xfs: iterate over extents in xfs_iextents_copy
authorChristoph Hellwig <hch@lst.de>
Fri, 3 Nov 2017 17:34:42 +0000 (10:34 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 6 Nov 2017 19:53:39 +0000 (11:53 -0800)
commit71565f4b92048321ba3078877dd1a1149a23550d
tree48cc2b27a5b38bd0f9a15cc52e52a4eaad03ca4a
parentf36bc228e1b94d9994915cba67588104ebe763ae
xfs: iterate over extents in xfs_iextents_copy

This actually makes the function very slightly less efficient for now as we
detour through the expanded irect format between the in-core extent format
and the on-disk one instead of just endian swapping them.  But with the
incore extent btree the in-core one will use a different format and the
representation will be entirely hidden.  It also happens to make the
function a whole more readable.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_inode_fork.c