Lines Matching refs:irec
73 xfs_inobt_rec_incore_t *irec) /* btree record */ in xfs_inobt_update() argument
77 rec.inobt.ir_startino = cpu_to_be32(irec->ir_startino); in xfs_inobt_update()
79 rec.inobt.ir_u.sp.ir_holemask = cpu_to_be16(irec->ir_holemask); in xfs_inobt_update()
80 rec.inobt.ir_u.sp.ir_count = irec->ir_count; in xfs_inobt_update()
81 rec.inobt.ir_u.sp.ir_freecount = irec->ir_freecount; in xfs_inobt_update()
84 rec.inobt.ir_u.f.ir_freecount = cpu_to_be32(irec->ir_freecount); in xfs_inobt_update()
86 rec.inobt.ir_free = cpu_to_be64(irec->ir_free); in xfs_inobt_update()
95 struct xfs_inobt_rec_incore *irec) in xfs_inobt_btrec_to_irec() argument
97 irec->ir_startino = be32_to_cpu(rec->inobt.ir_startino); in xfs_inobt_btrec_to_irec()
99 irec->ir_holemask = be16_to_cpu(rec->inobt.ir_u.sp.ir_holemask); in xfs_inobt_btrec_to_irec()
100 irec->ir_count = rec->inobt.ir_u.sp.ir_count; in xfs_inobt_btrec_to_irec()
101 irec->ir_freecount = rec->inobt.ir_u.sp.ir_freecount; in xfs_inobt_btrec_to_irec()
107 irec->ir_holemask = XFS_INOBT_HOLEMASK_FULL; in xfs_inobt_btrec_to_irec()
108 irec->ir_count = XFS_INODES_PER_CHUNK; in xfs_inobt_btrec_to_irec()
109 irec->ir_freecount = in xfs_inobt_btrec_to_irec()
112 irec->ir_free = be64_to_cpu(rec->inobt.ir_free); in xfs_inobt_btrec_to_irec()
121 struct xfs_inobt_rec_incore *irec, in xfs_inobt_get_rec() argument
134 xfs_inobt_btrec_to_irec(mp, rec, irec); in xfs_inobt_get_rec()
136 if (!xfs_verify_agino(mp, agno, irec->ir_startino)) in xfs_inobt_get_rec()
138 if (irec->ir_count < XFS_INODES_PER_HOLEMASK_BIT || in xfs_inobt_get_rec()
139 irec->ir_count > XFS_INODES_PER_CHUNK) in xfs_inobt_get_rec()
141 if (irec->ir_freecount > XFS_INODES_PER_CHUNK) in xfs_inobt_get_rec()
145 if (!xfs_inobt_issparse(irec->ir_holemask)) in xfs_inobt_get_rec()
146 realfree = irec->ir_free; in xfs_inobt_get_rec()
148 realfree = irec->ir_free & xfs_inobt_irec_to_allocmask(irec); in xfs_inobt_get_rec()
149 if (hweight64(realfree) != irec->ir_freecount) in xfs_inobt_get_rec()
160 irec->ir_startino, irec->ir_count, irec->ir_freecount, in xfs_inobt_get_rec()
161 irec->ir_free, irec->ir_holemask); in xfs_inobt_get_rec()
2686 struct xfs_inobt_rec_incore irec; in xfs_ialloc_has_inode_record() local
2696 error = xfs_inobt_get_rec(cur, &irec, &has_record); in xfs_ialloc_has_inode_record()
2697 if (error || irec.ir_startino > high) in xfs_ialloc_has_inode_record()
2700 agino = irec.ir_startino; in xfs_ialloc_has_inode_record()
2701 holemask = irec.ir_holemask; in xfs_ialloc_has_inode_record()
2747 struct xfs_inobt_rec_incore irec; in xfs_ialloc_count_inodes_rec() local
2750 xfs_inobt_btrec_to_irec(cur->bc_mp, rec, &irec); in xfs_ialloc_count_inodes_rec()
2751 ci->count += irec.ir_count; in xfs_ialloc_count_inodes_rec()
2752 ci->freecount += irec.ir_freecount; in xfs_ialloc_count_inodes_rec()