Lines Matching defs:blocks
260 xfs_agblock_t blocks;
269 error = xfs_btree_count_blocks(cur, &blocks);
273 btreeblks = blocks - 1;
280 error = xfs_btree_count_blocks(cur, &blocks);
284 btreeblks += blocks - 1;
288 error = xfs_btree_count_blocks(cur, &blocks);
292 agf->agf_rmap_blocks = cpu_to_be32(blocks);
293 btreeblks += blocks - 1;
301 error = xfs_btree_count_blocks(cur, &blocks);
305 agf->agf_refcount_blocks = cpu_to_be32(blocks);
402 * Load the AGFL so that we can screen out OWN_AG blocks that are on
403 * the AGFL now; these blocks might have once been part of the
415 * Spot-check the AGFL blocks; if they're obviously corrupt then
455 /* Bitmap of alleged AGFL blocks that we're not going to add. */
458 /* Bitmap of other OWN_AG metadata blocks. */
464 /* rmapbt cursor for finding crosslinked blocks */
483 /* Record all the OWN_AG blocks. */
494 /* Strike out the blocks that are cross-linked according to the rmapbt. */
530 * which blocks belong to the AGFL.
532 * Compute the set of old AGFL blocks by subtracting from the list of OWN_AG
533 * blocks the list of blocks owned by all other OWN_AG metadata (bnobt, cntbt,
534 * rmapbt). These are the old AGFL blocks, so return that list and the number
535 * of blocks we're actually going to put back on the AGFL.
561 /* Find all blocks currently being used by the bnobt. */
569 /* Find all blocks currently being used by the cntbt. */
578 * Drop the freesp meta blocks that are in use by btrees.
579 * The remaining blocks /should/ be AGFL blocks.
585 /* Strike out the blocks that are cross-linked. */
596 * Calculate the new AGFL size. If we found more blocks than fit in
647 /* Fill the AGFL with whatever blocks are in this extent. */
703 * Fill the AGFL with the remaining blocks. If agfl_extents has more
704 * blocks than fit in the AGFL, they will be freed in a subsequent
913 xfs_agblock_t blocks;
915 error = xfs_btree_count_blocks(cur, &blocks);
918 agi->agi_iblocks = cpu_to_be32(blocks);
926 xfs_agblock_t blocks;
930 error = xfs_btree_count_blocks(cur, &blocks);
934 agi->agi_fblocks = cpu_to_be32(blocks);