Lines Matching refs:blocks
244 xfs_agblock_t blocks; in xrep_agf_calc_from_btrees() local
253 error = xfs_btree_count_blocks(cur, &blocks); in xrep_agf_calc_from_btrees()
257 btreeblks = blocks - 1; in xrep_agf_calc_from_btrees()
264 error = xfs_btree_count_blocks(cur, &blocks); in xrep_agf_calc_from_btrees()
268 btreeblks += blocks - 1; in xrep_agf_calc_from_btrees()
272 error = xfs_btree_count_blocks(cur, &blocks); in xrep_agf_calc_from_btrees()
276 agf->agf_rmap_blocks = cpu_to_be32(blocks); in xrep_agf_calc_from_btrees()
277 btreeblks += blocks - 1; in xrep_agf_calc_from_btrees()
285 error = xfs_btree_count_blocks(cur, &blocks); in xrep_agf_calc_from_btrees()
289 agf->agf_refcount_blocks = cpu_to_be32(blocks); in xrep_agf_calc_from_btrees()
814 xfs_agblock_t blocks; in xrep_agi_calc_from_btrees() local
816 error = xfs_btree_count_blocks(cur, &blocks); in xrep_agi_calc_from_btrees()
819 agi->agi_iblocks = cpu_to_be32(blocks); in xrep_agi_calc_from_btrees()
828 xfs_agblock_t blocks; in xrep_agi_calc_from_btrees() local
834 error = xfs_btree_count_blocks(cur, &blocks); in xrep_agi_calc_from_btrees()
838 agi->agi_fblocks = cpu_to_be32(blocks); in xrep_agi_calc_from_btrees()