Lines Matching refs:cur

140 	struct xfs_btree_cur	*cur = bs->cur;  in xchk_rmapbt_check_unwritten_in_keyflags()  local
149 for (level = 1; level < cur->bc_nlevels; level++) { in xchk_rmapbt_check_unwritten_in_keyflags()
154 if (cur->bc_levels[level].ptr > 1) in xchk_rmapbt_check_unwritten_in_keyflags()
157 keyblock = xfs_btree_get_block(cur, level, &bp); in xchk_rmapbt_check_unwritten_in_keyflags()
159 lkey = xfs_btree_key_addr(cur, ptr, keyblock); in xchk_rmapbt_check_unwritten_in_keyflags()
162 xchk_btree_set_preen(sc, cur, level); in xchk_rmapbt_check_unwritten_in_keyflags()
166 hkey = xfs_btree_high_key_addr(cur, ptr, keyblock); in xchk_rmapbt_check_unwritten_in_keyflags()
168 xchk_btree_set_preen(sc, cur, level); in xchk_rmapbt_check_unwritten_in_keyflags()
214 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rmapbt_check_overlapping()
265 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rmapbt_check_mergeable()
351 xfs_rmap_check_irec(bs->cur, &irec) != NULL) { in xchk_rmapbt_rec()
352 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rmapbt_rec()
393 struct xfs_btree_cur *cur; in xchk_rmapbt_walk_ag_metadata() local
412 cur = sc->sa.bno_cur; in xchk_rmapbt_walk_ag_metadata()
413 if (!cur) in xchk_rmapbt_walk_ag_metadata()
414 cur = xfs_allocbt_init_cursor(sc->mp, sc->tp, sc->sa.agf_bp, in xchk_rmapbt_walk_ag_metadata()
416 error = xagb_bitmap_set_btblocks(&cr->ag_owned, cur); in xchk_rmapbt_walk_ag_metadata()
417 if (cur != sc->sa.bno_cur) in xchk_rmapbt_walk_ag_metadata()
418 xfs_btree_del_cursor(cur, error); in xchk_rmapbt_walk_ag_metadata()
422 cur = sc->sa.cnt_cur; in xchk_rmapbt_walk_ag_metadata()
423 if (!cur) in xchk_rmapbt_walk_ag_metadata()
424 cur = xfs_allocbt_init_cursor(sc->mp, sc->tp, sc->sa.agf_bp, in xchk_rmapbt_walk_ag_metadata()
426 error = xagb_bitmap_set_btblocks(&cr->ag_owned, cur); in xchk_rmapbt_walk_ag_metadata()
427 if (cur != sc->sa.cnt_cur) in xchk_rmapbt_walk_ag_metadata()
428 xfs_btree_del_cursor(cur, error); in xchk_rmapbt_walk_ag_metadata()
447 cur = sc->sa.ino_cur; in xchk_rmapbt_walk_ag_metadata()
448 if (!cur) in xchk_rmapbt_walk_ag_metadata()
449 cur = xfs_inobt_init_cursor(sc->sa.pag, sc->tp, sc->sa.agi_bp, in xchk_rmapbt_walk_ag_metadata()
451 error = xagb_bitmap_set_btblocks(&cr->inobt_owned, cur); in xchk_rmapbt_walk_ag_metadata()
452 if (cur != sc->sa.ino_cur) in xchk_rmapbt_walk_ag_metadata()
453 xfs_btree_del_cursor(cur, error); in xchk_rmapbt_walk_ag_metadata()
458 cur = sc->sa.fino_cur; in xchk_rmapbt_walk_ag_metadata()
459 if (!cur) in xchk_rmapbt_walk_ag_metadata()
460 cur = xfs_inobt_init_cursor(sc->sa.pag, sc->tp, in xchk_rmapbt_walk_ag_metadata()
462 error = xagb_bitmap_set_btblocks(&cr->inobt_owned, cur); in xchk_rmapbt_walk_ag_metadata()
463 if (cur != sc->sa.fino_cur) in xchk_rmapbt_walk_ag_metadata()
464 xfs_btree_del_cursor(cur, error); in xchk_rmapbt_walk_ag_metadata()
471 cur = sc->sa.refc_cur; in xchk_rmapbt_walk_ag_metadata()
472 if (!cur) in xchk_rmapbt_walk_ag_metadata()
473 cur = xfs_refcountbt_init_cursor(sc->mp, sc->tp, in xchk_rmapbt_walk_ag_metadata()
475 error = xagb_bitmap_set_btblocks(&cr->refcbt_owned, cur); in xchk_rmapbt_walk_ag_metadata()
476 if (cur != sc->sa.refc_cur) in xchk_rmapbt_walk_ag_metadata()
477 xfs_btree_del_cursor(cur, error); in xchk_rmapbt_walk_ag_metadata()
504 struct xfs_btree_cur *cur = sc->sa.rmap_cur; in xchk_rmapbt_check_bitmaps() local
510 if (!cur) in xchk_rmapbt_check_bitmaps()
512 level = cur->bc_nlevels - 1; in xchk_rmapbt_check_bitmaps()
519 xchk_btree_xref_set_corrupt(sc, cur, level); in xchk_rmapbt_check_bitmaps()
522 xchk_btree_xref_set_corrupt(sc, cur, level); in xchk_rmapbt_check_bitmaps()
525 xchk_btree_xref_set_corrupt(sc, cur, level); in xchk_rmapbt_check_bitmaps()
528 xchk_btree_xref_set_corrupt(sc, cur, level); in xchk_rmapbt_check_bitmaps()
531 xchk_btree_xref_set_corrupt(sc, cur, level); in xchk_rmapbt_check_bitmaps()