Lines Matching defs:irec
106 struct xfs_refcount_irec *irec)
113 irec->rc_domain = XFS_REFC_DOMAIN_COW;
115 irec->rc_domain = XFS_REFC_DOMAIN_SHARED;
118 irec->rc_startblock = start;
119 irec->rc_blockcount = be32_to_cpu(rec->refc.rc_blockcount);
120 irec->rc_refcount = be32_to_cpu(rec->refc.rc_refcount);
127 const struct xfs_refcount_irec *irec)
131 if (irec->rc_blockcount == 0 || irec->rc_blockcount > MAXREFCEXTLEN)
134 if (!xfs_refcount_check_domain(irec))
138 if (!xfs_verify_agbext(pag, irec->rc_startblock, irec->rc_blockcount))
141 if (irec->rc_refcount == 0 || irec->rc_refcount > MAXREFCOUNT)
151 const struct xfs_refcount_irec *irec)
160 irec->rc_startblock, irec->rc_blockcount, irec->rc_refcount);
170 struct xfs_refcount_irec *irec,
181 xfs_refcount_btrec_to_irec(rec, irec);
182 fa = xfs_refcount_check_irec(cur, irec);
184 return xfs_refcount_complain_bad_rec(cur, fa, irec);
186 trace_xfs_refcount_get(cur->bc_mp, cur->bc_ag.pag->pag_agno, irec);
198 struct xfs_refcount_irec *irec)
204 trace_xfs_refcount_update(cur->bc_mp, cur->bc_ag.pag->pag_agno, irec);
206 start = xfs_refcount_encode_startblock(irec->rc_startblock,
207 irec->rc_domain);
209 rec.refc.rc_blockcount = cpu_to_be32(irec->rc_blockcount);
210 rec.refc.rc_refcount = cpu_to_be32(irec->rc_refcount);
227 struct xfs_refcount_irec *irec,
232 trace_xfs_refcount_insert(cur->bc_mp, cur->bc_ag.pag->pag_agno, irec);
234 cur->bc_rec.rc.rc_startblock = irec->rc_startblock;
235 cur->bc_rec.rc.rc_blockcount = irec->rc_blockcount;
236 cur->bc_rec.rc.rc_refcount = irec->rc_refcount;
237 cur->bc_rec.rc.rc_domain = irec->rc_domain;
265 struct xfs_refcount_irec irec;
269 error = xfs_refcount_get_rec(cur, &irec, &found_rec);
276 trace_xfs_refcount_delete(cur->bc_mp, cur->bc_ag.pag->pag_agno, &irec);
284 error = xfs_refcount_lookup_ge(cur, irec.rc_domain, irec.rc_startblock,
847 const struct xfs_refcount_irec *irec,
851 if (irec->rc_refcount == MAXREFCOUNT)
853 return irec->rc_refcount + adjust;