Lines Matching defs:irec

59 	struct xfs_inobt_rec_incore	*irec,
75 if (((irec->ir_freecount > 0 && !has_irec) ||
76 (irec->ir_freecount == 0 && has_irec)))
84 struct xfs_inobt_rec_incore *irec,
93 xchk_iallocbt_chunk_xref_other(sc, irec, agino);
102 struct xfs_inobt_rec_incore *irec,
116 xchk_iallocbt_chunk_xref(bs->sc, irec, agino, bno, len);
140 * @irec is the inobt record.
147 struct xfs_inobt_rec_incore *irec,
166 agino = irec->ir_startino + irec_ino;
168 irec_free = (irec->ir_free & XFS_INOBT_MASK(irec_ino));
205 * @cluster_base is the first inode in the cluster within the @irec.
210 struct xfs_inobt_rec_incore *irec,
229 agbno = XFS_AGINO_TO_AGBNO(mp, irec->ir_startino + cluster_base);
245 ir_holemask = (irec->ir_holemask & cluster_mask);
248 imap.im_boffset = XFS_INO_TO_OFFSET(mp, irec->ir_startino) <<
257 trace_xchk_iallocbt_check_cluster(mp, agno, irec->ir_startino,
260 XFS_INO_TO_OFFSET(mp, irec->ir_startino +
295 error = xchk_iallocbt_check_cluster_ifree(bs, irec,
314 struct xfs_inobt_rec_incore *irec)
329 error = xchk_iallocbt_check_cluster(bs, irec, cluster_base);
346 struct xfs_inobt_rec_incore *irec)
369 if (irec->ir_startino & imask)
378 * irec in the sequence?
380 if (irec->ir_startino != iabt->next_startino) {
396 if (irec->ir_startino & (igeo->cluster_align_inodes - 1)) {
401 if (irec->ir_startino & (igeo->inodes_per_cluster - 1)) {
414 iabt->next_startino = irec->ir_startino + XFS_INODES_PER_CHUNK;
415 iabt->next_cluster_ino = irec->ir_startino + igeo->inodes_per_cluster;
426 struct xfs_inobt_rec_incore irec;
437 xfs_inobt_btrec_to_irec(mp, rec, &irec);
439 if (irec.ir_count > XFS_INODES_PER_CHUNK ||
440 irec.ir_freecount > XFS_INODES_PER_CHUNK)
443 real_freecount = irec.ir_freecount +
444 (XFS_INODES_PER_CHUNK - irec.ir_count);
445 if (real_freecount != xchk_iallocbt_freecount(irec.ir_free))
448 agino = irec.ir_startino;
456 xchk_iallocbt_rec_alignment(bs, &irec);
460 iabt->inodes += irec.ir_count;
463 if (!xfs_inobt_issparse(irec.ir_holemask)) {
466 if (irec.ir_count != XFS_INODES_PER_CHUNK)
469 if (!xchk_iallocbt_chunk(bs, &irec, agino, len))
475 holemask = irec.ir_holemask;
479 holes = ~xfs_inobt_irec_to_allocmask(&irec);
480 if ((holes & irec.ir_free) != holes ||
481 irec.ir_freecount > irec.ir_count)
487 else if (!xchk_iallocbt_chunk(bs, &irec, agino, len))
494 holecount + irec.ir_count != XFS_INODES_PER_CHUNK)
498 error = xchk_iallocbt_check_clusters(bs, &irec);