Lines Matching full:sai
659 struct xchk_agfl_info *sai = priv; in xchk_agfl_block() local
660 struct xfs_scrub *sc = sai->sc; in xchk_agfl_block()
663 sai->nr_entries < sai->agflcount) in xchk_agfl_block()
664 sai->entries[sai->nr_entries++] = agbno; in xchk_agfl_block()
666 xchk_block_set_corrupt(sc, sai->agfl_bp); in xchk_agfl_block()
719 struct xchk_agfl_info sai = { in xchk_agfl() local
735 error = xfs_alloc_read_agfl(sc->sa.pag, sc->tp, &sai.agfl_bp); in xchk_agfl()
738 xchk_buffer_recheck(sc, sai.agfl_bp); in xchk_agfl()
747 sai.agflcount = be32_to_cpu(agf->agf_flcount); in xchk_agfl()
748 if (sai.agflcount > xfs_agfl_size(sc->mp)) { in xchk_agfl()
752 sai.entries = kvcalloc(sai.agflcount, sizeof(xfs_agblock_t), in xchk_agfl()
754 if (!sai.entries) { in xchk_agfl()
760 error = xfs_agfl_walk(sc->mp, sc->sa.agf_bp->b_addr, sai.agfl_bp, in xchk_agfl()
761 xchk_agfl_block, &sai); in xchk_agfl()
769 if (sai.agflcount != sai.nr_entries) { in xchk_agfl()
775 sort(sai.entries, sai.nr_entries, sizeof(sai.entries[0]), in xchk_agfl()
777 for (i = 1; i < sai.nr_entries; i++) { in xchk_agfl()
778 if (sai.entries[i] == sai.entries[i - 1]) { in xchk_agfl()
785 kvfree(sai.entries); in xchk_agfl()