xfs: refactor the ifork block counting function
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 16 Jun 2017 18:00:12 +0000 (11:00 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 20 Jun 2017 17:45:21 +0000 (10:45 -0700)
commite7f5d5ca36e29fa3c9702f236b0ab73f63336080
tree8f10b248d7b616d52850d6e2b5013c2d35461ed3
parentd29cb3e45e923715f74d8a08d5c1ea996dce5a59
xfs: refactor the ifork block counting function

Refactor the inode fork block counting function to count extents for us
at the same time.  This will be used by the bmbt scrubber function.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/xfs_bmap_util.c
fs/xfs/xfs_bmap_util.h