Lines Matching refs:fab
131 struct xrep_find_ag_btree *fab) in xrep_check_btree_root() argument
133 return xfs_verify_agbno(sc->sa.pag, fab->root) && in xrep_check_btree_root()
134 fab->height <= fab->maxlevels; in xrep_check_btree_root()
150 struct xrep_find_ag_btree *fab, in xrep_agf_find_btrees() argument
157 error = xrep_find_ag_btree_roots(sc, agf_bp, fab, agfl_bp); in xrep_agf_find_btrees()
162 if (!xrep_check_btree_root(sc, &fab[XREP_AGF_BNOBT]) || in xrep_agf_find_btrees()
163 !xrep_check_btree_root(sc, &fab[XREP_AGF_CNTBT]) || in xrep_agf_find_btrees()
164 !xrep_check_btree_root(sc, &fab[XREP_AGF_RMAPBT])) in xrep_agf_find_btrees()
171 if (fab[XREP_AGF_RMAPBT].root != in xrep_agf_find_btrees()
177 !xrep_check_btree_root(sc, &fab[XREP_AGF_REFCOUNTBT])) in xrep_agf_find_btrees()
218 struct xrep_find_ag_btree *fab) in xrep_agf_set_roots() argument
221 cpu_to_be32(fab[XREP_AGF_BNOBT].root); in xrep_agf_set_roots()
223 cpu_to_be32(fab[XREP_AGF_BNOBT].height); in xrep_agf_set_roots()
226 cpu_to_be32(fab[XREP_AGF_CNTBT].root); in xrep_agf_set_roots()
228 cpu_to_be32(fab[XREP_AGF_CNTBT].height); in xrep_agf_set_roots()
231 cpu_to_be32(fab[XREP_AGF_RMAPBT].root); in xrep_agf_set_roots()
233 cpu_to_be32(fab[XREP_AGF_RMAPBT].height); in xrep_agf_set_roots()
237 cpu_to_be32(fab[XREP_AGF_REFCOUNTBT].root); in xrep_agf_set_roots()
239 cpu_to_be32(fab[XREP_AGF_REFCOUNTBT].height); in xrep_agf_set_roots()
346 struct xrep_find_ag_btree fab[XREP_AGF_MAX] = { in xrep_agf() local
421 error = xrep_agf_find_btrees(sc, agf_bp, fab, agfl_bp); in xrep_agf()
427 xrep_agf_set_roots(sc, agf, fab); in xrep_agf()
733 struct xrep_find_ag_btree *fab) in xrep_agi_find_btrees() argument
745 error = xrep_find_ag_btree_roots(sc, agf_bp, fab, NULL); in xrep_agi_find_btrees()
750 if (!xrep_check_btree_root(sc, &fab[XREP_AGI_INOBT])) in xrep_agi_find_btrees()
755 !xrep_check_btree_root(sc, &fab[XREP_AGI_FINOBT])) in xrep_agi_find_btrees()
799 struct xrep_find_ag_btree *fab) in xrep_agi_set_roots() argument
801 agi->agi_root = cpu_to_be32(fab[XREP_AGI_INOBT].root); in xrep_agi_set_roots()
802 agi->agi_level = cpu_to_be32(fab[XREP_AGI_INOBT].height); in xrep_agi_set_roots()
805 agi->agi_free_root = cpu_to_be32(fab[XREP_AGI_FINOBT].root); in xrep_agi_set_roots()
806 agi->agi_free_level = cpu_to_be32(fab[XREP_AGI_FINOBT].height); in xrep_agi_set_roots()
889 struct xrep_find_ag_btree fab[XREP_AGI_MAX] = { in xrep_agi() local
928 error = xrep_agi_find_btrees(sc, fab); in xrep_agi()
934 xrep_agi_set_roots(sc, agi, fab); in xrep_agi()