Lines Matching refs:rec
112 union xfs_btree_rec *rec, in xfs_allocbt_update_lastrec() argument
132 len = rec->alloc.ar_blockcount; in xfs_allocbt_update_lastrec()
135 if (be32_to_cpu(rec->alloc.ar_blockcount) <= in xfs_allocbt_update_lastrec()
138 len = rec->alloc.ar_blockcount; in xfs_allocbt_update_lastrec()
187 union xfs_btree_rec *rec) in xfs_allocbt_init_key_from_rec() argument
189 key->alloc.ar_startblock = rec->alloc.ar_startblock; in xfs_allocbt_init_key_from_rec()
190 key->alloc.ar_blockcount = rec->alloc.ar_blockcount; in xfs_allocbt_init_key_from_rec()
196 union xfs_btree_rec *rec) in xfs_bnobt_init_high_key_from_rec() argument
200 x = be32_to_cpu(rec->alloc.ar_startblock); in xfs_bnobt_init_high_key_from_rec()
201 x += be32_to_cpu(rec->alloc.ar_blockcount) - 1; in xfs_bnobt_init_high_key_from_rec()
209 union xfs_btree_rec *rec) in xfs_cntbt_init_high_key_from_rec() argument
211 key->alloc.ar_blockcount = rec->alloc.ar_blockcount; in xfs_cntbt_init_high_key_from_rec()
218 union xfs_btree_rec *rec) in xfs_allocbt_init_rec_from_cur() argument
220 rec->alloc.ar_startblock = cpu_to_be32(cur->bc_rec.a.ar_startblock); in xfs_allocbt_init_rec_from_cur()
221 rec->alloc.ar_blockcount = cpu_to_be32(cur->bc_rec.a.ar_blockcount); in xfs_allocbt_init_rec_from_cur()
241 xfs_alloc_rec_incore_t *rec = &cur->bc_rec.a; in xfs_bnobt_key_diff() local
244 return (int64_t)be32_to_cpu(kp->ar_startblock) - rec->ar_startblock; in xfs_bnobt_key_diff()
252 xfs_alloc_rec_incore_t *rec = &cur->bc_rec.a; in xfs_cntbt_key_diff() local
256 diff = (int64_t)be32_to_cpu(kp->ar_blockcount) - rec->ar_blockcount; in xfs_cntbt_key_diff()
260 return (int64_t)be32_to_cpu(kp->ar_startblock) - rec->ar_startblock; in xfs_cntbt_key_diff()