Lines Matching defs:irec
56 xfs_inobt_rec_incore_t *irec) /* btree record */
60 rec.inobt.ir_startino = cpu_to_be32(irec->ir_startino);
62 rec.inobt.ir_u.sp.ir_holemask = cpu_to_be16(irec->ir_holemask);
63 rec.inobt.ir_u.sp.ir_count = irec->ir_count;
64 rec.inobt.ir_u.sp.ir_freecount = irec->ir_freecount;
67 rec.inobt.ir_u.f.ir_freecount = cpu_to_be32(irec->ir_freecount);
69 rec.inobt.ir_free = cpu_to_be64(irec->ir_free);
78 struct xfs_inobt_rec_incore *irec)
80 irec->ir_startino = be32_to_cpu(rec->inobt.ir_startino);
82 irec->ir_holemask = be16_to_cpu(rec->inobt.ir_u.sp.ir_holemask);
83 irec->ir_count = rec->inobt.ir_u.sp.ir_count;
84 irec->ir_freecount = rec->inobt.ir_u.sp.ir_freecount;
90 irec->ir_holemask = XFS_INOBT_HOLEMASK_FULL;
91 irec->ir_count = XFS_INODES_PER_CHUNK;
92 irec->ir_freecount =
95 irec->ir_free = be64_to_cpu(rec->inobt.ir_free);
104 struct xfs_inobt_rec_incore *irec,
117 xfs_inobt_btrec_to_irec(mp, rec, irec);
119 if (!xfs_verify_agino(mp, agno, irec->ir_startino))
121 if (irec->ir_count < XFS_INODES_PER_HOLEMASK_BIT ||
122 irec->ir_count > XFS_INODES_PER_CHUNK)
124 if (irec->ir_freecount > XFS_INODES_PER_CHUNK)
128 if (!xfs_inobt_issparse(irec->ir_holemask))
129 realfree = irec->ir_free;
131 realfree = irec->ir_free & xfs_inobt_irec_to_allocmask(irec);
132 if (hweight64(realfree) != irec->ir_freecount)
143 irec->ir_startino, irec->ir_count, irec->ir_freecount,
144 irec->ir_free, irec->ir_holemask);
2696 struct xfs_inobt_rec_incore irec;
2706 error = xfs_inobt_get_rec(cur, &irec, &has_record);
2707 if (error || irec.ir_startino > high)
2710 agino = irec.ir_startino;
2711 holemask = irec.ir_holemask;
2757 struct xfs_inobt_rec_incore irec;
2760 xfs_inobt_btrec_to_irec(cur->bc_mp, rec, &irec);
2761 ci->count += irec.ir_count;
2762 ci->freecount += irec.ir_freecount;