/kernel/linux/linux-5.10/fs/xfs/scrub/ |
D | agheader_repair.c | 139 struct xfs_buf *agf_bp, in xrep_agf_find_btrees() argument 143 struct xfs_agf *old_agf = agf_bp->b_addr; in xrep_agf_find_btrees() 147 error = xrep_find_ag_btree_roots(sc, agf_bp, fab, agfl_bp); in xrep_agf_find_btrees() 180 struct xfs_buf *agf_bp, in xrep_agf_init_header() argument 184 struct xfs_agf *agf = agf_bp->b_addr; in xrep_agf_init_header() 187 memset(agf, 0, BBTOB(agf_bp->b_length)); in xrep_agf_init_header() 237 struct xfs_buf *agf_bp) in xrep_agf_calc_from_btrees() argument 241 struct xfs_agf *agf = agf_bp->b_addr; in xrep_agf_calc_from_btrees() 248 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.agno, in xrep_agf_calc_from_btrees() 262 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.agno, in xrep_agf_calc_from_btrees() [all …]
|
D | agheader.c | 361 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_freeblks() 373 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_freeblks() 381 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_cntbt() 396 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_cntbt() 405 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_cntbt() 413 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_btreeblks() 426 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_btreeblks() 451 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_btreeblks() 459 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_refcblks() 470 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_refcblks() [all …]
|
D | repair.c | 126 if (sc->sa.agf_bp) in xrep_roll_ag_trans() 127 xfs_trans_bhold(sc->tp, sc->sa.agf_bp); in xrep_roll_ag_trans() 145 if (sc->sa.agf_bp) in xrep_roll_ag_trans() 146 xfs_trans_bjoin(sc->tp, sc->sa.agf_bp); in xrep_roll_ag_trans() 298 error = xfs_alloc_get_freelist(sc->tp, sc->sa.agf_bp, &bno, 1); in xrep_alloc_ag_block() 508 error = xfs_rmap_alloc(sc->tp, sc->sa.agf_bp, sc->sa.agno, agbno, 1, in xrep_put_freelist() 514 error = xfs_alloc_put_freelist(sc->tp, sc->sa.agf_bp, sc->sa.agfl_bp, in xrep_put_freelist() 533 struct xfs_buf *agf_bp = NULL; in xrep_reap_block() local 548 error = xfs_alloc_read_agf(sc->mp, sc->tp, agno, 0, &agf_bp); in xrep_reap_block() 552 agf_bp = sc->sa.agf_bp; in xrep_reap_block() [all …]
|
D | fscounters.c | 68 struct xfs_buf *agf_bp = NULL; in xchk_fscount_warmup() local 83 error = xfs_alloc_read_agf(mp, sc->tp, agno, 0, &agf_bp); in xchk_fscount_warmup() 95 xfs_buf_relse(agf_bp); in xchk_fscount_warmup() 96 agf_bp = NULL; in xchk_fscount_warmup() 108 if (agf_bp) in xchk_fscount_warmup() 109 xfs_buf_relse(agf_bp); in xchk_fscount_warmup()
|
D | common.c | 464 if (sa->agf_bp && in xchk_ag_btcur_init() 467 sa->bno_cur = xfs_allocbt_init_cursor(mp, sc->tp, sa->agf_bp, in xchk_ag_btcur_init() 473 if (sa->agf_bp && in xchk_ag_btcur_init() 476 sa->cnt_cur = xfs_allocbt_init_cursor(mp, sc->tp, sa->agf_bp, in xchk_ag_btcur_init() 501 if (sa->agf_bp && xfs_sb_version_hasrmapbt(&mp->m_sb) && in xchk_ag_btcur_init() 503 sa->rmap_cur = xfs_rmapbt_init_cursor(mp, sc->tp, sa->agf_bp, in xchk_ag_btcur_init() 510 if (sa->agf_bp && xfs_sb_version_hasreflink(&mp->m_sb) && in xchk_ag_btcur_init() 513 sa->agf_bp, agno); in xchk_ag_btcur_init() 534 if (sa->agf_bp) { in xchk_ag_free() 535 xfs_trans_brelse(sc->tp, sa->agf_bp); in xchk_ag_free() [all …]
|
D | repair.h | 52 int xrep_find_ag_btree_roots(struct xfs_scrub *sc, struct xfs_buf *agf_bp,
|
D | scrub.h | 43 struct xfs_buf *agf_bp; member
|
/kernel/linux/linux-5.10/fs/xfs/ |
D | xfs_fsmap.c | 159 struct xfs_buf *agf_bp; /* AGF, for refcount queries */ member 212 cur = xfs_refcountbt_init_cursor(mp, tp, info->agf_bp, in xfs_getfsmap_is_shared() 633 xfs_trans_brelse(tp, info->agf_bp); in __xfs_getfsmap_datadev() 634 info->agf_bp = NULL; in __xfs_getfsmap_datadev() 638 &info->agf_bp); in __xfs_getfsmap_datadev() 672 if (info->agf_bp) { in __xfs_getfsmap_datadev() 673 xfs_trans_brelse(tp, info->agf_bp); in __xfs_getfsmap_datadev() 674 info->agf_bp = NULL; in __xfs_getfsmap_datadev() 693 *curpp = xfs_rmapbt_init_cursor(tp->t_mountp, tp, info->agf_bp, in xfs_getfsmap_datadev_rmapbt_query() 726 *curpp = xfs_allocbt_init_cursor(tp->t_mountp, tp, info->agf_bp, in xfs_getfsmap_datadev_bnobt_query()
|
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
D | xfs_ag.c | 554 struct xfs_buf *agf_bp; in xfs_ag_get_geometry() local 568 error = xfs_alloc_read_agf(mp, NULL, agno, 0, &agf_bp); in xfs_ag_get_geometry() 582 agf = agf_bp->b_addr; in xfs_ag_get_geometry() 592 xfs_buf_relse(agf_bp); in xfs_ag_get_geometry()
|