]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitad8cc785524fcf0c99480a11f1fb596f0691cce1
tree48cc2b27a5b38bd0f9a15cc52e52a4eaad03ca4a
parent80e527a41708a20452027a75f61a7406a9e4eefc
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