diff options
| author | Darrick J. Wong <[email protected]> | 2023-04-12 02:00:01 +0000 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2023-04-12 02:00:01 +0000 |
| commit | 366a0b8d49c3a7edcb5331f254af195716ba4bdf (patch) | |
| tree | 435a9f5949f1e4631232566e357e4ae349621185 /fs/xfs/libxfs/xfs_ialloc_btree.c | |
| parent | xfs: standardize ondisk to incore conversion for free space btrees (diff) | |
| download | kernel-366a0b8d49c3a7edcb5331f254af195716ba4bdf.tar.gz kernel-366a0b8d49c3a7edcb5331f254af195716ba4bdf.zip | |
xfs: standardize ondisk to incore conversion for inode btrees
Create a xfs_inobt_check_irec function to detect corruption in btree
records. Fix all xfs_inobt_btrec_to_irec callsites to call the new
helper and bubble up corruption reports.
Signed-off-by: Darrick J. Wong <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Diffstat (limited to 'fs/xfs/libxfs/xfs_ialloc_btree.c')
| -rw-r--r-- | fs/xfs/libxfs/xfs_ialloc_btree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_ialloc_btree.c b/fs/xfs/libxfs/xfs_ialloc_btree.c index ad6c521f05eb..f900c056b82c 100644 --- a/fs/xfs/libxfs/xfs_ialloc_btree.c +++ b/fs/xfs/libxfs/xfs_ialloc_btree.c @@ -608,7 +608,7 @@ xfs_iallocbt_maxlevels_ondisk(void) */ uint64_t xfs_inobt_irec_to_allocmask( - struct xfs_inobt_rec_incore *rec) + const struct xfs_inobt_rec_incore *rec) { uint64_t bitmap = 0; uint64_t inodespbit; |
