Lines Matching refs:sai
631 struct xchk_agfl_info *sai = priv; in xchk_agfl_block() local
632 struct xfs_scrub *sc = sai->sc; in xchk_agfl_block()
636 sai->nr_entries < sai->sz_entries) in xchk_agfl_block()
637 sai->entries[sai->nr_entries++] = agbno; in xchk_agfl_block()
696 struct xchk_agfl_info sai; in xchk_agfl() local
724 memset(&sai, 0, sizeof(sai)); in xchk_agfl()
725 sai.sc = sc; in xchk_agfl()
726 sai.sz_entries = agflcount; in xchk_agfl()
727 sai.entries = kmem_zalloc(sizeof(xfs_agblock_t) * agflcount, in xchk_agfl()
729 if (!sai.entries) { in xchk_agfl()
735 xfs_rmap_ag_owner(&sai.oinfo, XFS_RMAP_OWN_AG); in xchk_agfl()
737 sc->sa.agfl_bp, xchk_agfl_block, &sai); in xchk_agfl()
745 if (agflcount != sai.nr_entries) { in xchk_agfl()
751 sort(sai.entries, sai.nr_entries, sizeof(sai.entries[0]), in xchk_agfl()
753 for (i = 1; i < sai.nr_entries; i++) { in xchk_agfl()
754 if (sai.entries[i] == sai.entries[i - 1]) { in xchk_agfl()
761 kmem_free(sai.entries); in xchk_agfl()