Lines Matching refs:sai
640 struct xchk_agfl_info *sai = priv; in xchk_agfl_block() local
641 struct xfs_scrub *sc = sai->sc; in xchk_agfl_block()
645 sai->nr_entries < sai->sz_entries) in xchk_agfl_block()
646 sai->entries[sai->nr_entries++] = agbno; in xchk_agfl_block()
700 struct xchk_agfl_info sai; in xchk_agfl() local
726 memset(&sai, 0, sizeof(sai)); in xchk_agfl()
727 sai.sc = sc; in xchk_agfl()
728 sai.sz_entries = agflcount; in xchk_agfl()
729 sai.entries = kmem_zalloc(sizeof(xfs_agblock_t) * agflcount, in xchk_agfl()
731 if (!sai.entries) { in xchk_agfl()
738 sc->sa.agfl_bp, xchk_agfl_block, &sai); in xchk_agfl()
746 if (agflcount != sai.nr_entries) { in xchk_agfl()
752 sort(sai.entries, sai.nr_entries, sizeof(sai.entries[0]), in xchk_agfl()
754 for (i = 1; i < sai.nr_entries; i++) { in xchk_agfl()
755 if (sai.entries[i] == sai.entries[i - 1]) { in xchk_agfl()
762 kmem_free(sai.entries); in xchk_agfl()