Lines Matching refs:cur
84 struct xfs_btree_cur *cur, in xrep_agf_walk_allocbt() argument
250 struct xfs_btree_cur *cur = NULL; in xrep_agf_calc_from_btrees() local
258 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, in xrep_agf_calc_from_btrees()
260 error = xfs_alloc_query_all(cur, xrep_agf_walk_allocbt, &raa); in xrep_agf_calc_from_btrees()
263 error = xfs_btree_count_blocks(cur, &blocks); in xrep_agf_calc_from_btrees()
266 xfs_btree_del_cursor(cur, error); in xrep_agf_calc_from_btrees()
272 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, in xrep_agf_calc_from_btrees()
274 error = xfs_btree_count_blocks(cur, &blocks); in xrep_agf_calc_from_btrees()
277 xfs_btree_del_cursor(cur, error); in xrep_agf_calc_from_btrees()
281 cur = xfs_rmapbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.pag); in xrep_agf_calc_from_btrees()
282 error = xfs_btree_count_blocks(cur, &blocks); in xrep_agf_calc_from_btrees()
285 xfs_btree_del_cursor(cur, error); in xrep_agf_calc_from_btrees()
293 cur = xfs_refcountbt_init_cursor(mp, sc->tp, agf_bp, in xrep_agf_calc_from_btrees()
295 error = xfs_btree_count_blocks(cur, &blocks); in xrep_agf_calc_from_btrees()
298 xfs_btree_del_cursor(cur, error); in xrep_agf_calc_from_btrees()
304 xfs_btree_del_cursor(cur, error); in xrep_agf_calc_from_btrees()
457 struct xfs_btree_cur *cur, in xrep_agfl_walk_rmap() argument
470 fsb = XFS_AGB_TO_FSB(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xrep_agfl_walk_rmap()
477 return xbitmap_set_btcur_path(&ra->agmetablocks, cur); in xrep_agfl_walk_rmap()
498 struct xfs_btree_cur *cur; in xrep_agfl_collect_blocks() local
506 cur = xfs_rmapbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.pag); in xrep_agfl_collect_blocks()
507 error = xfs_rmap_query_all(cur, xrep_agfl_walk_rmap, &ra); in xrep_agfl_collect_blocks()
510 xfs_btree_del_cursor(cur, error); in xrep_agfl_collect_blocks()
513 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, in xrep_agfl_collect_blocks()
515 error = xbitmap_set_btblocks(&ra.agmetablocks, cur); in xrep_agfl_collect_blocks()
518 xfs_btree_del_cursor(cur, error); in xrep_agfl_collect_blocks()
521 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, in xrep_agfl_collect_blocks()
523 error = xbitmap_set_btblocks(&ra.agmetablocks, cur); in xrep_agfl_collect_blocks()
527 xfs_btree_del_cursor(cur, error); in xrep_agfl_collect_blocks()
548 xfs_btree_del_cursor(cur, error); in xrep_agfl_collect_blocks()
816 struct xfs_btree_cur *cur; in xrep_agi_calc_from_btrees() local
823 cur = xfs_inobt_init_cursor(mp, sc->tp, agi_bp, in xrep_agi_calc_from_btrees()
825 error = xfs_ialloc_count_inodes(cur, &count, &freecount); in xrep_agi_calc_from_btrees()
831 error = xfs_btree_count_blocks(cur, &blocks); in xrep_agi_calc_from_btrees()
836 xfs_btree_del_cursor(cur, error); in xrep_agi_calc_from_btrees()
844 cur = xfs_inobt_init_cursor(mp, sc->tp, agi_bp, in xrep_agi_calc_from_btrees()
846 error = xfs_btree_count_blocks(cur, &blocks); in xrep_agi_calc_from_btrees()
849 xfs_btree_del_cursor(cur, error); in xrep_agi_calc_from_btrees()
855 xfs_btree_del_cursor(cur, error); in xrep_agi_calc_from_btrees()