• Home
  • Raw
  • Download

Lines Matching full:sa

38 	error = xchk_ag_init(sc, agno, &sc->sa);  in xchk_superblock_xref()
47 /* scrub teardown will take care of sc->sa for us */ in xchk_superblock_xref()
361 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_freeblks()
365 if (!sc->sa.bno_cur) in xchk_agf_xref_freeblks()
368 error = xfs_alloc_query_all(sc->sa.bno_cur, in xchk_agf_xref_freeblks()
370 if (!xchk_should_check_xref(sc, &error, &sc->sa.bno_cur)) in xchk_agf_xref_freeblks()
373 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_freeblks()
381 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_cntbt()
387 if (!sc->sa.cnt_cur) in xchk_agf_xref_cntbt()
391 error = xfs_alloc_lookup_le(sc->sa.cnt_cur, 0, -1U, &have); in xchk_agf_xref_cntbt()
392 if (!xchk_should_check_xref(sc, &error, &sc->sa.cnt_cur)) in xchk_agf_xref_cntbt()
396 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_cntbt()
401 error = xfs_alloc_get_rec(sc->sa.cnt_cur, &agbno, &blocks, &have); in xchk_agf_xref_cntbt()
402 if (!xchk_should_check_xref(sc, &error, &sc->sa.cnt_cur)) in xchk_agf_xref_cntbt()
405 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_cntbt()
413 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_btreeblks()
420 if (sc->sa.rmap_cur) { in xchk_agf_xref_btreeblks()
421 error = xfs_btree_count_blocks(sc->sa.rmap_cur, &blocks); in xchk_agf_xref_btreeblks()
422 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_agf_xref_btreeblks()
426 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_btreeblks()
435 if ((xfs_sb_version_hasrmapbt(&mp->m_sb) && !sc->sa.rmap_cur) || in xchk_agf_xref_btreeblks()
436 !sc->sa.bno_cur || !sc->sa.cnt_cur) in xchk_agf_xref_btreeblks()
440 error = xfs_btree_count_blocks(sc->sa.bno_cur, &blocks); in xchk_agf_xref_btreeblks()
441 if (!xchk_should_check_xref(sc, &error, &sc->sa.bno_cur)) in xchk_agf_xref_btreeblks()
445 error = xfs_btree_count_blocks(sc->sa.cnt_cur, &blocks); in xchk_agf_xref_btreeblks()
446 if (!xchk_should_check_xref(sc, &error, &sc->sa.cnt_cur)) in xchk_agf_xref_btreeblks()
451 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_btreeblks()
459 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_refcblks()
463 if (!sc->sa.refc_cur) in xchk_agf_xref_refcblks()
466 error = xfs_btree_count_blocks(sc->sa.refc_cur, &blocks); in xchk_agf_xref_refcblks()
467 if (!xchk_should_check_xref(sc, &error, &sc->sa.refc_cur)) in xchk_agf_xref_refcblks()
470 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_refcblks()
487 error = xchk_ag_btcur_init(sc, &sc->sa); in xchk_agf_xref()
500 /* scrub teardown will take care of sc->sa for us */ in xchk_agf_xref()
521 agno = sc->sa.agno = sc->sm->sm_agno; in xchk_agf()
522 error = xchk_ag_read_headers(sc, agno, &sc->sa.agi_bp, in xchk_agf()
523 &sc->sa.agf_bp, &sc->sa.agfl_bp); in xchk_agf()
526 xchk_buffer_recheck(sc, sc->sa.agf_bp); in xchk_agf()
528 agf = sc->sa.agf_bp->b_addr; in xchk_agf()
533 xchk_block_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf()
538 xchk_block_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf()
542 xchk_block_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf()
546 xchk_block_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf()
550 xchk_block_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf()
555 xchk_block_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf()
559 xchk_block_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf()
565 xchk_block_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf()
569 xchk_block_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf()
581 xchk_block_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf()
586 xchk_block_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf()
588 xchk_block_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf()
590 xchk_block_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf()
631 xfs_agnumber_t agno = sc->sa.agno; in xchk_agfl_block()
637 xchk_block_set_corrupt(sc, sc->sa.agfl_bp); in xchk_agfl_block()
672 error = xchk_ag_btcur_init(sc, &sc->sa); in xchk_agfl_xref()
682 * Scrub teardown will take care of sc->sa for us. Leave sc->sa in xchk_agfl_xref()
699 agno = sc->sa.agno = sc->sm->sm_agno; in xchk_agfl()
700 error = xchk_ag_read_headers(sc, agno, &sc->sa.agi_bp, in xchk_agfl()
701 &sc->sa.agf_bp, &sc->sa.agfl_bp); in xchk_agfl()
704 if (!sc->sa.agf_bp) in xchk_agfl()
706 xchk_buffer_recheck(sc, sc->sa.agfl_bp); in xchk_agfl()
714 agf = sc->sa.agf_bp->b_addr; in xchk_agfl()
717 xchk_block_set_corrupt(sc, sc->sa.agf_bp); in xchk_agfl()
731 error = xfs_agfl_walk(sc->mp, sc->sa.agf_bp->b_addr, in xchk_agfl()
732 sc->sa.agfl_bp, xchk_agfl_block, &sai); in xchk_agfl()
741 xchk_block_set_corrupt(sc, sc->sa.agf_bp); in xchk_agfl()
750 xchk_block_set_corrupt(sc, sc->sa.agf_bp); in xchk_agfl()
768 struct xfs_agi *agi = sc->sa.agi_bp->b_addr; in xchk_agi_xref_icounts()
773 if (!sc->sa.ino_cur) in xchk_agi_xref_icounts()
776 error = xfs_ialloc_count_inodes(sc->sa.ino_cur, &icount, &freecount); in xchk_agi_xref_icounts()
777 if (!xchk_should_check_xref(sc, &error, &sc->sa.ino_cur)) in xchk_agi_xref_icounts()
781 xchk_block_xref_set_corrupt(sc, sc->sa.agi_bp); in xchk_agi_xref_icounts()
789 struct xfs_agi *agi = sc->sa.agi_bp->b_addr; in xchk_agi_xref_fiblocks()
796 if (sc->sa.ino_cur) { in xchk_agi_xref_fiblocks()
797 error = xfs_btree_count_blocks(sc->sa.ino_cur, &blocks); in xchk_agi_xref_fiblocks()
798 if (!xchk_should_check_xref(sc, &error, &sc->sa.ino_cur)) in xchk_agi_xref_fiblocks()
801 xchk_block_xref_set_corrupt(sc, sc->sa.agi_bp); in xchk_agi_xref_fiblocks()
804 if (sc->sa.fino_cur) { in xchk_agi_xref_fiblocks()
805 error = xfs_btree_count_blocks(sc->sa.fino_cur, &blocks); in xchk_agi_xref_fiblocks()
806 if (!xchk_should_check_xref(sc, &error, &sc->sa.fino_cur)) in xchk_agi_xref_fiblocks()
809 xchk_block_xref_set_corrupt(sc, sc->sa.agi_bp); in xchk_agi_xref_fiblocks()
827 error = xchk_ag_btcur_init(sc, &sc->sa); in xchk_agi_xref()
838 /* scrub teardown will take care of sc->sa for us */ in xchk_agi_xref()
860 agno = sc->sa.agno = sc->sm->sm_agno; in xchk_agi()
861 error = xchk_ag_read_headers(sc, agno, &sc->sa.agi_bp, in xchk_agi()
862 &sc->sa.agf_bp, &sc->sa.agfl_bp); in xchk_agi()
865 xchk_buffer_recheck(sc, sc->sa.agi_bp); in xchk_agi()
867 agi = sc->sa.agi_bp->b_addr; in xchk_agi()
872 xchk_block_set_corrupt(sc, sc->sa.agi_bp); in xchk_agi()
877 xchk_block_set_corrupt(sc, sc->sa.agi_bp); in xchk_agi()
881 xchk_block_set_corrupt(sc, sc->sa.agi_bp); in xchk_agi()
886 xchk_block_set_corrupt(sc, sc->sa.agi_bp); in xchk_agi()
890 xchk_block_set_corrupt(sc, sc->sa.agi_bp); in xchk_agi()
898 xchk_block_set_corrupt(sc, sc->sa.agi_bp); in xchk_agi()
903 xchk_block_set_corrupt(sc, sc->sa.agi_bp); in xchk_agi()
907 xchk_block_set_corrupt(sc, sc->sa.agi_bp); in xchk_agi()
913 xchk_block_set_corrupt(sc, sc->sa.agi_bp); in xchk_agi()
917 xchk_block_set_corrupt(sc, sc->sa.agi_bp); in xchk_agi()
922 xchk_block_set_corrupt(sc, sc->sa.agi_bp); in xchk_agi()
924 xchk_block_set_corrupt(sc, sc->sa.agi_bp); in xchk_agi()