Home
last modified time | relevance | path

Searched refs:agf_bp (Results 1 – 12 of 12) sorted by relevance

/openbmc/linux/fs/xfs/scrub/
H A Dagheader_repair.c154 struct xfs_buf *agf_bp, in xrep_agf_find_btrees() argument
158 struct xfs_agf *old_agf = agf_bp->b_addr; in xrep_agf_find_btrees()
162 error = xrep_find_ag_btree_roots(sc, agf_bp, fab, agfl_bp); in xrep_agf_find_btrees()
195 struct xfs_buf *agf_bp, in xrep_agf_init_header() argument
200 struct xfs_agf *agf = agf_bp->b_addr; in xrep_agf_init_header()
203 memset(agf, 0, BBTOB(agf_bp->b_length)); in xrep_agf_init_header()
253 struct xfs_buf *agf_bp) in xrep_agf_calc_from_btrees() argument
257 struct xfs_agf *agf = agf_bp->b_addr; in xrep_agf_calc_from_btrees()
264 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, in xrep_agf_calc_from_btrees()
278 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, in xrep_agf_calc_from_btrees()
[all …]
H A Dagheader.c383 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_freeblks()
395 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_freeblks()
403 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_cntbt()
418 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_cntbt()
427 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_cntbt()
435 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_btreeblks()
452 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_btreeblks()
477 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_btreeblks()
485 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_refcblks()
496 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_refcblks()
[all …]
H A Drepair.c155 if (sc->sa.agf_bp) { in xrep_roll_ag_trans()
156 xfs_alloc_log_agf(sc->tp, sc->sa.agf_bp, XFS_AGF_MAGICNUM); in xrep_roll_ag_trans()
157 xfs_trans_bhold(sc->tp, sc->sa.agf_bp); in xrep_roll_ag_trans()
173 if (sc->sa.agf_bp) in xrep_roll_ag_trans()
174 xfs_trans_bjoin(sc->tp, sc->sa.agf_bp); in xrep_roll_ag_trans()
200 if (sc->sa.agf_bp) { in xrep_defer_finish()
201 xfs_alloc_log_agf(sc->tp, sc->sa.agf_bp, XFS_AGF_MAGICNUM); in xrep_defer_finish()
202 xfs_trans_bhold(sc->tp, sc->sa.agf_bp); in xrep_defer_finish()
223 if (sc->sa.agf_bp) in xrep_defer_finish()
224 xfs_trans_bhold_release(sc->tp, sc->sa.agf_bp); in xrep_defer_finish()
[all …]
H A Dcommon.c418 error = xfs_alloc_read_agf(sa->pag, sc->tp, 0, &sa->agf_bp); in xchk_perag_read_headers()
438 ASSERT(sa->agf_bp == NULL); in xchk_perag_drain_and_lock()
482 if (sa->agf_bp) { in xchk_perag_drain_and_lock()
483 xfs_trans_brelse(sc->tp, sa->agf_bp); in xchk_perag_drain_and_lock()
484 sa->agf_bp = NULL; in xchk_perag_drain_and_lock()
557 if (sa->agf_bp && in xchk_ag_btcur_init()
560 sa->bno_cur = xfs_allocbt_init_cursor(mp, sc->tp, sa->agf_bp, in xchk_ag_btcur_init()
564 if (sa->agf_bp && in xchk_ag_btcur_init()
567 sa->cnt_cur = xfs_allocbt_init_cursor(mp, sc->tp, sa->agf_bp, in xchk_ag_btcur_init()
586 if (sa->agf_bp && xfs_has_rmapbt(mp) && in xchk_ag_btcur_init()
[all …]
H A Dfscounters.c85 struct xfs_buf *agf_bp = NULL; in xchk_fscount_warmup() local
101 error = xfs_alloc_read_agf(pag, sc->tp, 0, &agf_bp); in xchk_fscount_warmup()
115 xfs_buf_relse(agf_bp); in xchk_fscount_warmup()
116 agf_bp = NULL; in xchk_fscount_warmup()
121 if (agf_bp) in xchk_fscount_warmup()
122 xfs_buf_relse(agf_bp); in xchk_fscount_warmup()
H A Dreap.c122 error = xfs_rmap_alloc(sc->tp, sc->sa.agf_bp, sc->sa.pag, agbno, 1, in xreap_put_freelist()
132 error = xfs_alloc_put_freelist(sc->sa.pag, sc->tp, sc->sa.agf_bp, in xreap_put_freelist()
308 cur = xfs_rmapbt_init_cursor(sc->mp, sc->tp, sc->sa.agf_bp, in xreap_agextent_select()
380 return xfs_rmap_free(sc->tp, sc->sa.agf_bp, sc->sa.pag, agbno, in xreap_agextent_iter()
H A Drmap.c392 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_rmapbt_walk_ag_metadata()
414 cur = xfs_allocbt_init_cursor(sc->mp, sc->tp, sc->sa.agf_bp, in xchk_rmapbt_walk_ag_metadata()
424 cur = xfs_allocbt_init_cursor(sc->mp, sc->tp, sc->sa.agf_bp, in xchk_rmapbt_walk_ag_metadata()
474 sc->sa.agf_bp, sc->sa.pag); in xchk_rmapbt_walk_ag_metadata()
H A Drepair.h58 int xrep_find_ag_btree_roots(struct xfs_scrub *sc, struct xfs_buf *agf_bp,
H A Dscrub.h57 struct xfs_buf *agf_bp; member
/openbmc/linux/fs/xfs/
H A Dxfs_notify_failure.c113 struct xfs_buf *agf_bp = NULL; in xfs_dax_notify_ddev_failure() local
133 error = xfs_alloc_read_agf(pag, tp, 0, &agf_bp); in xfs_dax_notify_ddev_failure()
139 cur = xfs_rmapbt_init_cursor(mp, tp, agf_bp, pag); in xfs_dax_notify_ddev_failure()
150 agf = agf_bp->b_addr; in xfs_dax_notify_ddev_failure()
159 xfs_trans_brelse(tp, agf_bp); in xfs_dax_notify_ddev_failure()
H A Dxfs_fsmap.c160 struct xfs_buf *agf_bp; /* AGF, for refcount queries */ member
222 cur = xfs_refcountbt_init_cursor(mp, tp, info->agf_bp, info->pag); in xfs_getfsmap_is_shared()
667 xfs_trans_brelse(tp, info->agf_bp); in __xfs_getfsmap_datadev()
668 info->agf_bp = NULL; in __xfs_getfsmap_datadev()
671 error = xfs_alloc_read_agf(pag, tp, 0, &info->agf_bp); in __xfs_getfsmap_datadev()
708 if (info->agf_bp) { in __xfs_getfsmap_datadev()
709 xfs_trans_brelse(tp, info->agf_bp); in __xfs_getfsmap_datadev()
710 info->agf_bp = NULL; in __xfs_getfsmap_datadev()
736 *curpp = xfs_rmapbt_init_cursor(tp->t_mountp, tp, info->agf_bp, in xfs_getfsmap_datadev_rmapbt_query()
769 *curpp = xfs_allocbt_init_cursor(tp->t_mountp, tp, info->agf_bp, in xfs_getfsmap_datadev_bnobt_query()
/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_ag.c1120 struct xfs_buf *agf_bp; in xfs_ag_get_geometry() local
1130 error = xfs_alloc_read_agf(pag, NULL, 0, &agf_bp); in xfs_ag_get_geometry()
1142 agf = agf_bp->b_addr; in xfs_ag_get_geometry()
1152 xfs_buf_relse(agf_bp); in xfs_ag_get_geometry()