commit | fec40e220ffcbecadfdd95a68dc3dec1996b8ff6 | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <darrick.wong@oracle.com> | Mon Oct 28 16:12:35 2019 -0700 |
committer | Darrick J. Wong <darrick.wong@oracle.com> | Tue Oct 29 09:50:11 2019 -0700 |
tree | bb7df1cb5f703e0a897abec113e672142fca8eb7 | |
parent | c2414ad6e66ab96b867309454498f7fb29b7e855 [diff] |
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>