xfs: export various function for the online scrubber
Export various internal functions so that the online scrubber can use them to check the state of metadata. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
This commit is contained in:
@@ -568,7 +568,7 @@ xfs_btree_ptr_offset(
|
||||
/*
|
||||
* Return a pointer to the n-th record in the btree block.
|
||||
*/
|
||||
STATIC union xfs_btree_rec *
|
||||
union xfs_btree_rec *
|
||||
xfs_btree_rec_addr(
|
||||
struct xfs_btree_cur *cur,
|
||||
int n,
|
||||
@@ -581,7 +581,7 @@ xfs_btree_rec_addr(
|
||||
/*
|
||||
* Return a pointer to the n-th key in the btree block.
|
||||
*/
|
||||
STATIC union xfs_btree_key *
|
||||
union xfs_btree_key *
|
||||
xfs_btree_key_addr(
|
||||
struct xfs_btree_cur *cur,
|
||||
int n,
|
||||
@@ -594,7 +594,7 @@ xfs_btree_key_addr(
|
||||
/*
|
||||
* Return a pointer to the n-th high key in the btree block.
|
||||
*/
|
||||
STATIC union xfs_btree_key *
|
||||
union xfs_btree_key *
|
||||
xfs_btree_high_key_addr(
|
||||
struct xfs_btree_cur *cur,
|
||||
int n,
|
||||
@@ -607,7 +607,7 @@ xfs_btree_high_key_addr(
|
||||
/*
|
||||
* Return a pointer to the n-th block pointer in the btree block.
|
||||
*/
|
||||
STATIC union xfs_btree_ptr *
|
||||
union xfs_btree_ptr *
|
||||
xfs_btree_ptr_addr(
|
||||
struct xfs_btree_cur *cur,
|
||||
int n,
|
||||
@@ -641,7 +641,7 @@ xfs_btree_get_iroot(
|
||||
* Retrieve the block pointer from the cursor at the given level.
|
||||
* This may be an inode btree root or from a buffer.
|
||||
*/
|
||||
STATIC struct xfs_btree_block * /* generic btree block pointer */
|
||||
struct xfs_btree_block * /* generic btree block pointer */
|
||||
xfs_btree_get_block(
|
||||
struct xfs_btree_cur *cur, /* btree cursor */
|
||||
int level, /* level in btree */
|
||||
@@ -1756,7 +1756,7 @@ error0:
|
||||
return error;
|
||||
}
|
||||
|
||||
STATIC int
|
||||
int
|
||||
xfs_btree_lookup_get_block(
|
||||
struct xfs_btree_cur *cur, /* btree cursor */
|
||||
int level, /* level in the btree */
|
||||
|
||||
Reference in New Issue
Block a user