Lines Matching refs:irec

67 	struct xfs_inobt_rec_incore *irec,
108 if (irec->ir_free == 0)
112 if (irec->ir_free == XFS_INOBT_ALL_FREE)
134 struct xfs_inobt_rec_incore *irec,
147 for (i = agino, rec_idx = agino - irec->ir_startino;
153 free = irec->ir_free & (1ULL << rec_idx);
155 hole = irec->ir_holemask & (1U << hole_idx);
157 error = xchk_inobt_xref_finobt(sc, irec, i, free, hole);
175 struct xfs_inobt_rec_incore irec;
190 error = xfs_inobt_get_rec(cur, &irec, &has_record);
194 if (irec.ir_startino + XFS_INODES_PER_CHUNK <= agino)
198 rec_idx = agino - irec.ir_startino;
199 free = irec.ir_free & (1ULL << rec_idx);
201 hole = irec.ir_holemask & (1U << hole_idx);
255 struct xfs_inobt_rec_incore *irec,
276 xchk_inobt_chunk_xref_finobt(sc, irec, agino, nr_inodes);
278 xchk_finobt_chunk_xref_inobt(sc, irec, agino, nr_inodes);
295 * @irec is the inobt record.
302 struct xfs_inobt_rec_incore *irec,
321 agino = irec->ir_startino + irec_ino;
323 irec_free = (irec->ir_free & XFS_INOBT_MASK(irec_ino));
359 * @cluster_base is the first inode in the cluster within the @irec.
364 struct xfs_inobt_rec_incore *irec,
382 agbno = XFS_AGINO_TO_AGBNO(mp, irec->ir_startino + cluster_base);
398 ir_holemask = (irec->ir_holemask & cluster_mask);
401 imap.im_boffset = XFS_INO_TO_OFFSET(mp, irec->ir_startino) <<
410 trace_xchk_iallocbt_check_cluster(mp, agno, irec->ir_startino,
413 XFS_INO_TO_OFFSET(mp, irec->ir_startino +
448 error = xchk_iallocbt_check_cluster_ifree(bs, irec,
467 struct xfs_inobt_rec_incore *irec)
482 error = xchk_iallocbt_check_cluster(bs, irec, cluster_base);
499 struct xfs_inobt_rec_incore *irec)
522 if (irec->ir_startino & imask)
531 * irec in the sequence?
533 if (irec->ir_startino != iabt->next_startino) {
549 if (irec->ir_startino & (igeo->cluster_align_inodes - 1)) {
554 if (irec->ir_startino & (igeo->inodes_per_cluster - 1)) {
567 iabt->next_startino = irec->ir_startino + XFS_INODES_PER_CHUNK;
568 iabt->next_cluster_ino = irec->ir_startino + igeo->inodes_per_cluster;
579 struct xfs_inobt_rec_incore irec;
587 xfs_inobt_btrec_to_irec(mp, rec, &irec);
588 if (xfs_inobt_check_irec(bs->cur->bc_ag.pag, &irec) != NULL) {
593 agino = irec.ir_startino;
595 xchk_iallocbt_rec_alignment(bs, &irec);
599 iabt->inodes += irec.ir_count;
602 if (!xfs_inobt_issparse(irec.ir_holemask)) {
603 if (irec.ir_count != XFS_INODES_PER_CHUNK)
606 if (!xchk_iallocbt_chunk(bs, &irec, agino,
613 holemask = irec.ir_holemask;
615 holes = ~xfs_inobt_irec_to_allocmask(&irec);
616 if ((holes & irec.ir_free) != holes ||
617 irec.ir_freecount > irec.ir_count)
623 else if (!xchk_iallocbt_chunk(bs, &irec, agino,
631 holecount + irec.ir_count != XFS_INODES_PER_CHUNK)
638 error = xchk_iallocbt_check_clusters(bs, &irec);