/linux-5.19.10/fs/xfs/scrub/ |
D | agheader_repair.c | 152 struct xfs_buf *agf_bp, in xrep_agf_find_btrees() argument 156 struct xfs_agf *old_agf = agf_bp->b_addr; in xrep_agf_find_btrees() 160 error = xrep_find_ag_btree_roots(sc, agf_bp, fab, agfl_bp); in xrep_agf_find_btrees() 193 struct xfs_buf *agf_bp, in xrep_agf_init_header() argument 197 struct xfs_agf *agf = agf_bp->b_addr; in xrep_agf_init_header() 200 memset(agf, 0, BBTOB(agf_bp->b_length)); in xrep_agf_init_header() 251 struct xfs_buf *agf_bp) in xrep_agf_calc_from_btrees() argument 255 struct xfs_agf *agf = agf_bp->b_addr; in xrep_agf_calc_from_btrees() 262 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, in xrep_agf_calc_from_btrees() 276 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, in xrep_agf_calc_from_btrees() [all …]
|
D | repair.c | 127 if (sc->sa.agf_bp) in xrep_roll_ag_trans() 128 xfs_trans_bhold(sc->tp, sc->sa.agf_bp); in xrep_roll_ag_trans() 146 if (sc->sa.agf_bp) in xrep_roll_ag_trans() 147 xfs_trans_bjoin(sc->tp, sc->sa.agf_bp); in xrep_roll_ag_trans() 303 error = xfs_alloc_get_freelist(sc->tp, sc->sa.agf_bp, &bno, 1); in xrep_alloc_ag_block() 513 error = xfs_rmap_alloc(sc->tp, sc->sa.agf_bp, sc->sa.pag, agbno, 1, in xrep_put_freelist() 519 error = xfs_alloc_put_freelist(sc->tp, sc->sa.agf_bp, sc->sa.agfl_bp, in xrep_put_freelist() 538 struct xfs_buf *agf_bp = NULL; in xrep_reap_block() local 553 error = xfs_alloc_read_agf(sc->mp, sc->tp, agno, 0, &agf_bp); in xrep_reap_block() 557 agf_bp = sc->sa.agf_bp; in xrep_reap_block() [all …]
|
D | agheader.c | 373 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_freeblks() 385 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_freeblks() 393 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_cntbt() 408 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_cntbt() 417 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_cntbt() 425 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_btreeblks() 442 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_btreeblks() 467 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_btreeblks() 475 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_refcblks() 486 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_refcblks() [all …]
|
D | fscounters.c | 69 struct xfs_buf *agf_bp = NULL; in xchk_fscount_warmup() local 84 error = xfs_alloc_read_agf(mp, sc->tp, agno, 0, &agf_bp); in xchk_fscount_warmup() 97 xfs_buf_relse(agf_bp); in xchk_fscount_warmup() 98 agf_bp = NULL; in xchk_fscount_warmup() 103 if (agf_bp) in xchk_fscount_warmup() 104 xfs_buf_relse(agf_bp); in xchk_fscount_warmup()
|
D | common.c | 423 error = xfs_alloc_read_agf(mp, sc->tp, agno, 0, &sa->agf_bp); in xchk_ag_read_headers() 468 if (sa->agf_bp && in xchk_ag_btcur_init() 471 sa->bno_cur = xfs_allocbt_init_cursor(mp, sc->tp, sa->agf_bp, in xchk_ag_btcur_init() 475 if (sa->agf_bp && in xchk_ag_btcur_init() 478 sa->cnt_cur = xfs_allocbt_init_cursor(mp, sc->tp, sa->agf_bp, in xchk_ag_btcur_init() 497 if (sa->agf_bp && xfs_has_rmapbt(mp) && in xchk_ag_btcur_init() 499 sa->rmap_cur = xfs_rmapbt_init_cursor(mp, sc->tp, sa->agf_bp, in xchk_ag_btcur_init() 504 if (sa->agf_bp && xfs_has_reflink(mp) && in xchk_ag_btcur_init() 507 sa->agf_bp, sa->pag); in xchk_ag_btcur_init() 522 if (sa->agf_bp) { in xchk_ag_free() [all …]
|
D | repair.h | 55 int xrep_find_ag_btree_roots(struct xfs_scrub *sc, struct xfs_buf *agf_bp,
|
D | scrub.h | 41 struct xfs_buf *agf_bp; member
|
/linux-5.19.10/fs/xfs/ |
D | xfs_fsmap.c | 160 struct xfs_buf *agf_bp; /* AGF, for refcount queries */ member 213 cur = xfs_refcountbt_init_cursor(mp, tp, info->agf_bp, info->pag); in xfs_getfsmap_is_shared() 641 xfs_trans_brelse(tp, info->agf_bp); in __xfs_getfsmap_datadev() 642 info->agf_bp = NULL; in __xfs_getfsmap_datadev() 646 &info->agf_bp); in __xfs_getfsmap_datadev() 687 if (info->agf_bp) { in __xfs_getfsmap_datadev() 688 xfs_trans_brelse(tp, info->agf_bp); in __xfs_getfsmap_datadev() 689 info->agf_bp = NULL; in __xfs_getfsmap_datadev() 715 *curpp = xfs_rmapbt_init_cursor(tp->t_mountp, tp, info->agf_bp, in xfs_getfsmap_datadev_rmapbt_query() 748 *curpp = xfs_allocbt_init_cursor(tp->t_mountp, tp, info->agf_bp, in xfs_getfsmap_datadev_bnobt_query()
|
/linux-5.19.10/fs/xfs/libxfs/ |
D | xfs_ag.c | 947 struct xfs_buf *agf_bp; in xfs_ag_get_geometry() local 961 error = xfs_alloc_read_agf(mp, NULL, agno, 0, &agf_bp); in xfs_ag_get_geometry() 975 agf = agf_bp->b_addr; in xfs_ag_get_geometry() 985 xfs_buf_relse(agf_bp); in xfs_ag_get_geometry()
|