Lines Matching refs:fab

142 	struct xrep_find_ag_btree	*fab)  in xrep_check_btree_root()  argument
144 return xfs_verify_agbno(sc->sa.pag, fab->root) && in xrep_check_btree_root()
145 fab->height <= fab->maxlevels; in xrep_check_btree_root()
161 struct xrep_find_ag_btree *fab, in xrep_agf_find_btrees() argument
168 error = xrep_find_ag_btree_roots(sc, agf_bp, fab, agfl_bp); in xrep_agf_find_btrees()
173 if (!xrep_check_btree_root(sc, &fab[XREP_AGF_BNOBT]) || in xrep_agf_find_btrees()
174 !xrep_check_btree_root(sc, &fab[XREP_AGF_CNTBT]) || in xrep_agf_find_btrees()
175 !xrep_check_btree_root(sc, &fab[XREP_AGF_RMAPBT])) in xrep_agf_find_btrees()
182 if (fab[XREP_AGF_RMAPBT].root != be32_to_cpu(old_agf->agf_rmap_root)) in xrep_agf_find_btrees()
187 !xrep_check_btree_root(sc, &fab[XREP_AGF_REFCOUNTBT])) in xrep_agf_find_btrees()
229 struct xrep_find_ag_btree *fab) in xrep_agf_set_roots() argument
231 agf->agf_bno_root = cpu_to_be32(fab[XREP_AGF_BNOBT].root); in xrep_agf_set_roots()
232 agf->agf_bno_level = cpu_to_be32(fab[XREP_AGF_BNOBT].height); in xrep_agf_set_roots()
234 agf->agf_cnt_root = cpu_to_be32(fab[XREP_AGF_CNTBT].root); in xrep_agf_set_roots()
235 agf->agf_cnt_level = cpu_to_be32(fab[XREP_AGF_CNTBT].height); in xrep_agf_set_roots()
237 agf->agf_rmap_root = cpu_to_be32(fab[XREP_AGF_RMAPBT].root); in xrep_agf_set_roots()
238 agf->agf_rmap_level = cpu_to_be32(fab[XREP_AGF_RMAPBT].height); in xrep_agf_set_roots()
242 cpu_to_be32(fab[XREP_AGF_REFCOUNTBT].root); in xrep_agf_set_roots()
244 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()
431 xrep_agf_set_roots(sc, agf, fab); in xrep_agf()
813 struct xrep_find_ag_btree fab[XREP_AGI_MAX]; member
854 struct xrep_find_ag_btree *fab = ragi->fab; in xrep_agi_find_btrees() local
865 error = xrep_find_ag_btree_roots(sc, agf_bp, fab, NULL); in xrep_agi_find_btrees()
870 if (!xrep_check_btree_root(sc, &fab[XREP_AGI_INOBT])) in xrep_agi_find_btrees()
875 !xrep_check_btree_root(sc, &fab[XREP_AGI_FINOBT])) in xrep_agi_find_btrees()
919 struct xrep_find_ag_btree *fab = ragi->fab; in xrep_agi_set_roots() local
921 agi->agi_root = cpu_to_be32(fab[XREP_AGI_INOBT].root); in xrep_agi_set_roots()
922 agi->agi_level = cpu_to_be32(fab[XREP_AGI_INOBT].height); in xrep_agi_set_roots()
925 agi->agi_free_root = cpu_to_be32(fab[XREP_AGI_FINOBT].root); in xrep_agi_set_roots()
926 agi->agi_free_level = cpu_to_be32(fab[XREP_AGI_FINOBT].height); in xrep_agi_set_roots()
1725 ragi->fab[XREP_AGI_INOBT] = (struct xrep_find_ag_btree){ in xrep_agi()
1730 ragi->fab[XREP_AGI_FINOBT] = (struct xrep_find_ag_btree){ in xrep_agi()
1735 ragi->fab[XREP_AGI_END] = (struct xrep_find_ag_btree){ in xrep_agi()