Lines Matching refs:irec
56 xfs_inobt_rec_incore_t *irec) /* btree record */ in xfs_inobt_update() argument
60 rec.inobt.ir_startino = cpu_to_be32(irec->ir_startino); in xfs_inobt_update()
62 rec.inobt.ir_u.sp.ir_holemask = cpu_to_be16(irec->ir_holemask); in xfs_inobt_update()
63 rec.inobt.ir_u.sp.ir_count = irec->ir_count; in xfs_inobt_update()
64 rec.inobt.ir_u.sp.ir_freecount = irec->ir_freecount; in xfs_inobt_update()
67 rec.inobt.ir_u.f.ir_freecount = cpu_to_be32(irec->ir_freecount); in xfs_inobt_update()
69 rec.inobt.ir_free = cpu_to_be64(irec->ir_free); in xfs_inobt_update()
78 struct xfs_inobt_rec_incore *irec) in xfs_inobt_btrec_to_irec() argument
80 irec->ir_startino = be32_to_cpu(rec->inobt.ir_startino); in xfs_inobt_btrec_to_irec()
82 irec->ir_holemask = be16_to_cpu(rec->inobt.ir_u.sp.ir_holemask); in xfs_inobt_btrec_to_irec()
83 irec->ir_count = rec->inobt.ir_u.sp.ir_count; in xfs_inobt_btrec_to_irec()
84 irec->ir_freecount = rec->inobt.ir_u.sp.ir_freecount; in xfs_inobt_btrec_to_irec()
90 irec->ir_holemask = XFS_INOBT_HOLEMASK_FULL; in xfs_inobt_btrec_to_irec()
91 irec->ir_count = XFS_INODES_PER_CHUNK; in xfs_inobt_btrec_to_irec()
92 irec->ir_freecount = in xfs_inobt_btrec_to_irec()
95 irec->ir_free = be64_to_cpu(rec->inobt.ir_free); in xfs_inobt_btrec_to_irec()
104 struct xfs_inobt_rec_incore *irec, in xfs_inobt_get_rec() argument
117 xfs_inobt_btrec_to_irec(mp, rec, irec); in xfs_inobt_get_rec()
119 if (!xfs_verify_agino(mp, agno, irec->ir_startino)) in xfs_inobt_get_rec()
121 if (irec->ir_count < XFS_INODES_PER_HOLEMASK_BIT || in xfs_inobt_get_rec()
122 irec->ir_count > XFS_INODES_PER_CHUNK) in xfs_inobt_get_rec()
124 if (irec->ir_freecount > XFS_INODES_PER_CHUNK) in xfs_inobt_get_rec()
128 if (!xfs_inobt_issparse(irec->ir_holemask)) in xfs_inobt_get_rec()
129 realfree = irec->ir_free; in xfs_inobt_get_rec()
131 realfree = irec->ir_free & xfs_inobt_irec_to_allocmask(irec); in xfs_inobt_get_rec()
132 if (hweight64(realfree) != irec->ir_freecount) in xfs_inobt_get_rec()
143 irec->ir_startino, irec->ir_count, irec->ir_freecount, in xfs_inobt_get_rec()
144 irec->ir_free, irec->ir_holemask); in xfs_inobt_get_rec()
2655 struct xfs_inobt_rec_incore irec; in xfs_ialloc_has_inode_record() local
2665 error = xfs_inobt_get_rec(cur, &irec, &has_record); in xfs_ialloc_has_inode_record()
2666 if (error || irec.ir_startino > high) in xfs_ialloc_has_inode_record()
2669 agino = irec.ir_startino; in xfs_ialloc_has_inode_record()
2670 holemask = irec.ir_holemask; in xfs_ialloc_has_inode_record()
2716 struct xfs_inobt_rec_incore irec; in xfs_ialloc_count_inodes_rec() local
2719 xfs_inobt_btrec_to_irec(cur->bc_mp, rec, &irec); in xfs_ialloc_count_inodes_rec()
2720 ci->count += irec.ir_count; in xfs_ialloc_count_inodes_rec()
2721 ci->freecount += irec.ir_freecount; in xfs_ialloc_count_inodes_rec()