Lines Matching refs:fab
119 struct xrep_find_ag_btree *fab) in xrep_check_btree_root() argument
124 return xfs_verify_agbno(mp, agno, fab->root) && in xrep_check_btree_root()
125 fab->height <= fab->maxlevels; in xrep_check_btree_root()
141 struct xrep_find_ag_btree *fab, in xrep_agf_find_btrees() argument
148 error = xrep_find_ag_btree_roots(sc, agf_bp, fab, agfl_bp); in xrep_agf_find_btrees()
153 if (!xrep_check_btree_root(sc, &fab[XREP_AGF_BNOBT]) || in xrep_agf_find_btrees()
154 !xrep_check_btree_root(sc, &fab[XREP_AGF_CNTBT]) || in xrep_agf_find_btrees()
155 !xrep_check_btree_root(sc, &fab[XREP_AGF_RMAPBT])) in xrep_agf_find_btrees()
162 if (fab[XREP_AGF_RMAPBT].root != in xrep_agf_find_btrees()
168 !xrep_check_btree_root(sc, &fab[XREP_AGF_REFCOUNTBT])) in xrep_agf_find_btrees()
210 struct xrep_find_ag_btree *fab) in xrep_agf_set_roots() argument
213 cpu_to_be32(fab[XREP_AGF_BNOBT].root); in xrep_agf_set_roots()
215 cpu_to_be32(fab[XREP_AGF_BNOBT].height); in xrep_agf_set_roots()
218 cpu_to_be32(fab[XREP_AGF_CNTBT].root); in xrep_agf_set_roots()
220 cpu_to_be32(fab[XREP_AGF_CNTBT].height); in xrep_agf_set_roots()
223 cpu_to_be32(fab[XREP_AGF_RMAPBT].root); in xrep_agf_set_roots()
225 cpu_to_be32(fab[XREP_AGF_RMAPBT].height); in xrep_agf_set_roots()
229 cpu_to_be32(fab[XREP_AGF_REFCOUNTBT].root); in xrep_agf_set_roots()
231 cpu_to_be32(fab[XREP_AGF_REFCOUNTBT].height); in xrep_agf_set_roots()
338 struct xrep_find_ag_btree fab[XREP_AGF_MAX] = { in xrep_agf() local
413 error = xrep_agf_find_btrees(sc, agf_bp, fab, agfl_bp); in xrep_agf()
419 xrep_agf_set_roots(sc, agf, fab); in xrep_agf()
726 struct xrep_find_ag_btree *fab) in xrep_agi_find_btrees() argument
739 error = xrep_find_ag_btree_roots(sc, agf_bp, fab, NULL); in xrep_agi_find_btrees()
744 if (!xrep_check_btree_root(sc, &fab[XREP_AGI_INOBT])) in xrep_agi_find_btrees()
749 !xrep_check_btree_root(sc, &fab[XREP_AGI_FINOBT])) in xrep_agi_find_btrees()
794 struct xrep_find_ag_btree *fab) in xrep_agi_set_roots() argument
796 agi->agi_root = cpu_to_be32(fab[XREP_AGI_INOBT].root); in xrep_agi_set_roots()
797 agi->agi_level = cpu_to_be32(fab[XREP_AGI_INOBT].height); in xrep_agi_set_roots()
800 agi->agi_free_root = cpu_to_be32(fab[XREP_AGI_FINOBT].root); in xrep_agi_set_roots()
801 agi->agi_free_level = cpu_to_be32(fab[XREP_AGI_FINOBT].height); in xrep_agi_set_roots()
884 struct xrep_find_ag_btree fab[XREP_AGI_MAX] = { in xrep_agi() local
923 error = xrep_agi_find_btrees(sc, fab); in xrep_agi()
929 xrep_agi_set_roots(sc, agi, fab); in xrep_agi()