aboutsummaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_ialloc_btree.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2023-04-11 19:00:01 -0700
committerDarrick J. Wong <djwong@kernel.org>2023-04-11 19:00:01 -0700
commit366a0b8d49c3a7edcb5331f254af195716ba4bdf (patch)
tree435a9f5949f1e4631232566e357e4ae349621185 /fs/xfs/libxfs/xfs_ialloc_btree.c
parent35e3b9a11740b53387e7af151768c13700f80696 (diff)
downloadlinux-366a0b8d49c3a7edcb5331f254af195716ba4bdf.tar.gz
linux-366a0b8d49c3a7edcb5331f254af195716ba4bdf.tar.bz2
linux-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 <djwong@kernel.org> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_ialloc_btree.c')
-rw-r--r--fs/xfs/libxfs/xfs_ialloc_btree.c2
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;