diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2017-06-16 14:00:08 -0400 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-06-19 17:11:34 -0400 |
commit | e936945ee49693f40217db82a7db55c94e34ce4c (patch) | |
tree | d6c75fe16688ae714e40368a74b4e9c859f3d737 /fs/xfs/libxfs/xfs_ialloc.h | |
parent | 118bb47e281cde728608633f1a358fb9f2ac0adc (diff) |
xfs: export _inobt_btrec_to_irec and _ialloc_cluster_alignment for scrub
Create a function to extract an in-core inobt record from a generic
btree_rec union so that scrub will be able to check inobt records
and check inode block alignment.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_ialloc.h')
-rw-r--r-- | fs/xfs/libxfs/xfs_ialloc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_ialloc.h b/fs/xfs/libxfs/xfs_ialloc.h index 0bb89669fc07..b32cfb5aeb5b 100644 --- a/fs/xfs/libxfs/xfs_ialloc.h +++ b/fs/xfs/libxfs/xfs_ialloc.h | |||
@@ -168,5 +168,10 @@ int xfs_ialloc_inode_init(struct xfs_mount *mp, struct xfs_trans *tp, | |||
168 | int xfs_read_agi(struct xfs_mount *mp, struct xfs_trans *tp, | 168 | int xfs_read_agi(struct xfs_mount *mp, struct xfs_trans *tp, |
169 | xfs_agnumber_t agno, struct xfs_buf **bpp); | 169 | xfs_agnumber_t agno, struct xfs_buf **bpp); |
170 | 170 | ||
171 | union xfs_btree_rec; | ||
172 | void xfs_inobt_btrec_to_irec(struct xfs_mount *mp, union xfs_btree_rec *rec, | ||
173 | struct xfs_inobt_rec_incore *irec); | ||
174 | |||
175 | int xfs_ialloc_cluster_alignment(struct xfs_mount *mp); | ||
171 | 176 | ||
172 | #endif /* __XFS_IALLOC_H__ */ | 177 | #endif /* __XFS_IALLOC_H__ */ |