Lines Matching refs:alloc

144 		len = rec->alloc.ar_blockcount;
147 if (be32_to_cpu(rec->alloc.ar_blockcount) <=
150 len = rec->alloc.ar_blockcount;
200 key->alloc.ar_startblock = rec->alloc.ar_startblock;
201 key->alloc.ar_blockcount = rec->alloc.ar_blockcount;
211 x = be32_to_cpu(rec->alloc.ar_startblock);
212 x += be32_to_cpu(rec->alloc.ar_blockcount) - 1;
213 key->alloc.ar_startblock = cpu_to_be32(x);
214 key->alloc.ar_blockcount = 0;
222 key->alloc.ar_blockcount = rec->alloc.ar_blockcount;
223 key->alloc.ar_startblock = 0;
231 rec->alloc.ar_startblock = cpu_to_be32(cur->bc_rec.a.ar_startblock);
232 rec->alloc.ar_blockcount = cpu_to_be32(cur->bc_rec.a.ar_blockcount);
256 const struct xfs_alloc_rec *kp = &key->alloc;
267 const struct xfs_alloc_rec *kp = &key->alloc;
284 ASSERT(!mask || mask->alloc.ar_startblock);
286 return (int64_t)be32_to_cpu(k1->alloc.ar_startblock) -
287 be32_to_cpu(k2->alloc.ar_startblock);
299 ASSERT(!mask || (mask->alloc.ar_blockcount &&
300 mask->alloc.ar_startblock));
302 diff = be32_to_cpu(k1->alloc.ar_blockcount) -
303 be32_to_cpu(k2->alloc.ar_blockcount);
307 return be32_to_cpu(k1->alloc.ar_startblock) -
308 be32_to_cpu(k2->alloc.ar_startblock);
426 return be32_to_cpu(k1->alloc.ar_startblock) <
427 be32_to_cpu(k2->alloc.ar_startblock);
436 return be32_to_cpu(r1->alloc.ar_startblock) +
437 be32_to_cpu(r1->alloc.ar_blockcount) <=
438 be32_to_cpu(r2->alloc.ar_startblock);
447 return be32_to_cpu(k1->alloc.ar_blockcount) <
448 be32_to_cpu(k2->alloc.ar_blockcount) ||
449 (k1->alloc.ar_blockcount == k2->alloc.ar_blockcount &&
450 be32_to_cpu(k1->alloc.ar_startblock) <
451 be32_to_cpu(k2->alloc.ar_startblock));
460 return be32_to_cpu(r1->alloc.ar_blockcount) <
461 be32_to_cpu(r2->alloc.ar_blockcount) ||
462 (r1->alloc.ar_blockcount == r2->alloc.ar_blockcount &&
463 be32_to_cpu(r1->alloc.ar_startblock) <
464 be32_to_cpu(r2->alloc.ar_startblock));
474 ASSERT(!mask || mask->alloc.ar_startblock);
476 return xbtree_key_contig(be32_to_cpu(key1->alloc.ar_startblock),
477 be32_to_cpu(key2->alloc.ar_startblock));
622 /* Calculate number of records in an alloc btree block. */
634 * Calculate number of records in an alloc btree block.