]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: refactor xfs_bmap_count_blocks using newer btree helpers
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 28 Oct 2019 23:12:35 +0000 (16:12 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 29 Oct 2019 16:50:11 +0000 (09:50 -0700)
commit5108d343827a24d968e395a1c791a3258fd4b112
treebb7df1cb5f703e0a897abec113e672142fca8eb7
parent0fe5f9fff9a1b871ee5523cf1f85e905a9df53ef
xfs: refactor xfs_bmap_count_blocks using newer btree helpers

Currently, this function open-codes walking a bmbt to count the extents
and blocks in use by a particular inode fork.  Since we now have a
function to tally extent records from the incore extent tree and a btree
helper to count every block in a btree, replace all that with calls to
the helpers.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_bmap_util.c