Lines Matching refs:irec

96 	struct xfs_refcount_irec	*irec)  in xfs_refcount_btrec_to_irec()  argument
98 irec->rc_startblock = be32_to_cpu(rec->refc.rc_startblock); in xfs_refcount_btrec_to_irec()
99 irec->rc_blockcount = be32_to_cpu(rec->refc.rc_blockcount); in xfs_refcount_btrec_to_irec()
100 irec->rc_refcount = be32_to_cpu(rec->refc.rc_refcount); in xfs_refcount_btrec_to_irec()
109 struct xfs_refcount_irec *irec, in xfs_refcount_get_rec() argument
122 xfs_refcount_btrec_to_irec(rec, irec); in xfs_refcount_get_rec()
125 if (irec->rc_blockcount == 0 || irec->rc_blockcount > MAXREFCEXTLEN) in xfs_refcount_get_rec()
129 realstart = irec->rc_startblock; in xfs_refcount_get_rec()
131 if (irec->rc_refcount != 1) in xfs_refcount_get_rec()
134 } else if (irec->rc_refcount < 2) { in xfs_refcount_get_rec()
141 if (realstart > realstart + irec->rc_blockcount) in xfs_refcount_get_rec()
143 if (!xfs_verify_agbno(mp, agno, realstart + irec->rc_blockcount - 1)) in xfs_refcount_get_rec()
146 if (irec->rc_refcount == 0 || irec->rc_refcount > MAXREFCOUNT) in xfs_refcount_get_rec()
149 trace_xfs_refcount_get(cur->bc_mp, cur->bc_private.a.agno, irec); in xfs_refcount_get_rec()
157 irec->rc_startblock, irec->rc_blockcount, irec->rc_refcount); in xfs_refcount_get_rec()
169 struct xfs_refcount_irec *irec) in xfs_refcount_update() argument
174 trace_xfs_refcount_update(cur->bc_mp, cur->bc_private.a.agno, irec); in xfs_refcount_update()
175 rec.refc.rc_startblock = cpu_to_be32(irec->rc_startblock); in xfs_refcount_update()
176 rec.refc.rc_blockcount = cpu_to_be32(irec->rc_blockcount); in xfs_refcount_update()
177 rec.refc.rc_refcount = cpu_to_be32(irec->rc_refcount); in xfs_refcount_update()
193 struct xfs_refcount_irec *irec, in xfs_refcount_insert() argument
198 trace_xfs_refcount_insert(cur->bc_mp, cur->bc_private.a.agno, irec); in xfs_refcount_insert()
199 cur->bc_rec.rc.rc_startblock = irec->rc_startblock; in xfs_refcount_insert()
200 cur->bc_rec.rc.rc_blockcount = irec->rc_blockcount; in xfs_refcount_insert()
201 cur->bc_rec.rc.rc_refcount = irec->rc_refcount; in xfs_refcount_insert()
225 struct xfs_refcount_irec irec; in xfs_refcount_delete() local
229 error = xfs_refcount_get_rec(cur, &irec, &found_rec); in xfs_refcount_delete()
233 trace_xfs_refcount_delete(cur->bc_mp, cur->bc_private.a.agno, &irec); in xfs_refcount_delete()
238 error = xfs_refcount_lookup_ge(cur, irec.rc_startblock, &found_rec); in xfs_refcount_delete()