Lines Matching refs:alloc
127 len = rec->alloc.ar_blockcount; in xfs_allocbt_update_lastrec()
130 if (be32_to_cpu(rec->alloc.ar_blockcount) <= in xfs_allocbt_update_lastrec()
133 len = rec->alloc.ar_blockcount; in xfs_allocbt_update_lastrec()
183 key->alloc.ar_startblock = rec->alloc.ar_startblock; in xfs_allocbt_init_key_from_rec()
184 key->alloc.ar_blockcount = rec->alloc.ar_blockcount; in xfs_allocbt_init_key_from_rec()
194 x = be32_to_cpu(rec->alloc.ar_startblock); in xfs_bnobt_init_high_key_from_rec()
195 x += be32_to_cpu(rec->alloc.ar_blockcount) - 1; in xfs_bnobt_init_high_key_from_rec()
196 key->alloc.ar_startblock = cpu_to_be32(x); in xfs_bnobt_init_high_key_from_rec()
197 key->alloc.ar_blockcount = 0; in xfs_bnobt_init_high_key_from_rec()
205 key->alloc.ar_blockcount = rec->alloc.ar_blockcount; in xfs_cntbt_init_high_key_from_rec()
206 key->alloc.ar_startblock = 0; in xfs_cntbt_init_high_key_from_rec()
214 rec->alloc.ar_startblock = cpu_to_be32(cur->bc_rec.a.ar_startblock); in xfs_allocbt_init_rec_from_cur()
215 rec->alloc.ar_blockcount = cpu_to_be32(cur->bc_rec.a.ar_blockcount); in xfs_allocbt_init_rec_from_cur()
236 const struct xfs_alloc_rec *kp = &key->alloc; in xfs_bnobt_key_diff()
247 const struct xfs_alloc_rec *kp = &key->alloc; in xfs_cntbt_key_diff()
263 return (int64_t)be32_to_cpu(k1->alloc.ar_startblock) - in xfs_bnobt_diff_two_keys()
264 be32_to_cpu(k2->alloc.ar_startblock); in xfs_bnobt_diff_two_keys()
275 diff = be32_to_cpu(k1->alloc.ar_blockcount) - in xfs_cntbt_diff_two_keys()
276 be32_to_cpu(k2->alloc.ar_blockcount); in xfs_cntbt_diff_two_keys()
280 return be32_to_cpu(k1->alloc.ar_startblock) - in xfs_cntbt_diff_two_keys()
281 be32_to_cpu(k2->alloc.ar_startblock); in xfs_cntbt_diff_two_keys()
383 return be32_to_cpu(k1->alloc.ar_startblock) < in xfs_bnobt_keys_inorder()
384 be32_to_cpu(k2->alloc.ar_startblock); in xfs_bnobt_keys_inorder()
393 return be32_to_cpu(r1->alloc.ar_startblock) + in xfs_bnobt_recs_inorder()
394 be32_to_cpu(r1->alloc.ar_blockcount) <= in xfs_bnobt_recs_inorder()
395 be32_to_cpu(r2->alloc.ar_startblock); in xfs_bnobt_recs_inorder()
404 return be32_to_cpu(k1->alloc.ar_blockcount) < in xfs_cntbt_keys_inorder()
405 be32_to_cpu(k2->alloc.ar_blockcount) || in xfs_cntbt_keys_inorder()
406 (k1->alloc.ar_blockcount == k2->alloc.ar_blockcount && in xfs_cntbt_keys_inorder()
407 be32_to_cpu(k1->alloc.ar_startblock) < in xfs_cntbt_keys_inorder()
408 be32_to_cpu(k2->alloc.ar_startblock)); in xfs_cntbt_keys_inorder()
417 return be32_to_cpu(r1->alloc.ar_blockcount) < in xfs_cntbt_recs_inorder()
418 be32_to_cpu(r2->alloc.ar_blockcount) || in xfs_cntbt_recs_inorder()
419 (r1->alloc.ar_blockcount == r2->alloc.ar_blockcount && in xfs_cntbt_recs_inorder()
420 be32_to_cpu(r1->alloc.ar_startblock) < in xfs_cntbt_recs_inorder()
421 be32_to_cpu(r2->alloc.ar_startblock)); in xfs_cntbt_recs_inorder()