diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2017-06-16 21:00:12 +0300 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-06-20 20:45:21 +0300 |
commit | e7f5d5ca36e29fa3c9702f236b0ab73f63336080 (patch) | |
tree | 8f10b248d7b616d52850d6e2b5013c2d35461ed3 /fs/xfs/xfs_bmap_util.h | |
parent | d29cb3e45e923715f74d8a08d5c1ea996dce5a59 (diff) | |
download | linux-e7f5d5ca36e29fa3c9702f236b0ab73f63336080.tar.xz |
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>
Diffstat (limited to 'fs/xfs/xfs_bmap_util.h')
-rw-r--r-- | fs/xfs/xfs_bmap_util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/xfs/xfs_bmap_util.h b/fs/xfs/xfs_bmap_util.h index 135d8267e284..0cede1043571 100644 --- a/fs/xfs/xfs_bmap_util.h +++ b/fs/xfs/xfs_bmap_util.h @@ -70,4 +70,8 @@ int xfs_swap_extents(struct xfs_inode *ip, struct xfs_inode *tip, xfs_daddr_t xfs_fsb_to_db(struct xfs_inode *ip, xfs_fsblock_t fsb); +int xfs_bmap_count_blocks(struct xfs_trans *tp, struct xfs_inode *ip, + int whichfork, xfs_extnum_t *nextents, + xfs_filblks_t *count); + #endif /* __XFS_BMAP_UTIL_H__ */ |