Lines Matching refs:alloc

129 		len = rec->alloc.ar_blockcount;
132 if (be32_to_cpu(rec->alloc.ar_blockcount) <=
135 len = rec->alloc.ar_blockcount;
185 key->alloc.ar_startblock = rec->alloc.ar_startblock;
186 key->alloc.ar_blockcount = rec->alloc.ar_blockcount;
196 x = be32_to_cpu(rec->alloc.ar_startblock);
197 x += be32_to_cpu(rec->alloc.ar_blockcount) - 1;
198 key->alloc.ar_startblock = cpu_to_be32(x);
199 key->alloc.ar_blockcount = 0;
207 key->alloc.ar_blockcount = rec->alloc.ar_blockcount;
208 key->alloc.ar_startblock = 0;
216 rec->alloc.ar_startblock = cpu_to_be32(cur->bc_rec.a.ar_startblock);
217 rec->alloc.ar_blockcount = cpu_to_be32(cur->bc_rec.a.ar_blockcount);
238 const struct xfs_alloc_rec *kp = &key->alloc;
249 const struct xfs_alloc_rec *kp = &key->alloc;
266 ASSERT(!mask || mask->alloc.ar_startblock);
268 return (int64_t)be32_to_cpu(k1->alloc.ar_startblock) -
269 be32_to_cpu(k2->alloc.ar_startblock);
281 ASSERT(!mask || (mask->alloc.ar_blockcount &&
282 mask->alloc.ar_startblock));
284 diff = be32_to_cpu(k1->alloc.ar_blockcount) -
285 be32_to_cpu(k2->alloc.ar_blockcount);
289 return be32_to_cpu(k1->alloc.ar_startblock) -
290 be32_to_cpu(k2->alloc.ar_startblock);
392 return be32_to_cpu(k1->alloc.ar_startblock) <
393 be32_to_cpu(k2->alloc.ar_startblock);
402 return be32_to_cpu(r1->alloc.ar_startblock) +
403 be32_to_cpu(r1->alloc.ar_blockcount) <=
404 be32_to_cpu(r2->alloc.ar_startblock);
413 return be32_to_cpu(k1->alloc.ar_blockcount) <
414 be32_to_cpu(k2->alloc.ar_blockcount) ||
415 (k1->alloc.ar_blockcount == k2->alloc.ar_blockcount &&
416 be32_to_cpu(k1->alloc.ar_startblock) <
417 be32_to_cpu(k2->alloc.ar_startblock));
426 return be32_to_cpu(r1->alloc.ar_blockcount) <
427 be32_to_cpu(r2->alloc.ar_blockcount) ||
428 (r1->alloc.ar_blockcount == r2->alloc.ar_blockcount &&
429 be32_to_cpu(r1->alloc.ar_startblock) <
430 be32_to_cpu(r2->alloc.ar_startblock));
440 ASSERT(!mask || mask->alloc.ar_startblock);
442 return xbtree_key_contig(be32_to_cpu(key1->alloc.ar_startblock),
443 be32_to_cpu(key2->alloc.ar_startblock));
528 struct xfs_btree_cur * /* new alloc btree cursor */
592 /* Calculate number of records in an alloc btree block. */
604 * Calculate number of records in an alloc btree block.