| /Linux-v5.4/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 = XFS_BUF_TO_AGF(agf_bp); 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 = XFS_BUF_TO_AGF(agf_bp); 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 = XFS_BUF_TO_AGF(agf_bp); 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 = XFS_BUF_TO_AGF(sc->sa.agf_bp); 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 = XFS_BUF_TO_AGF(sc->sa.agf_bp); 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 = XFS_BUF_TO_AGF(sc->sa.agf_bp); 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 = XFS_BUF_TO_AGF(sc->sa.agf_bp); 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() 296 error = xfs_alloc_get_freelist(sc->tp, sc->sa.agf_bp, &bno, 1); in xrep_alloc_ag_block() 502 error = xfs_rmap_alloc(sc->tp, sc->sa.agf_bp, sc->sa.agno, agbno, 1, in xrep_put_freelist() 508 error = xfs_alloc_put_freelist(sc->tp, sc->sa.agf_bp, sc->sa.agfl_bp, in xrep_put_freelist() 527 struct xfs_buf *agf_bp = NULL; in xrep_reap_block() local 542 error = xfs_alloc_read_agf(sc->mp, sc->tp, agno, 0, &agf_bp); in xrep_reap_block() 545 if (!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() 87 if (!agf_bp || !agi_bp) in xchk_fscount_warmup() 98 xfs_buf_relse(agf_bp); in xchk_fscount_warmup() 99 agf_bp = NULL; in xchk_fscount_warmup() 111 if (agf_bp) in xchk_fscount_warmup() 112 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 | 50 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
|
| /Linux-v5.4/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() 622 xfs_trans_brelse(tp, info->agf_bp); in __xfs_getfsmap_datadev() 623 info->agf_bp = NULL; in __xfs_getfsmap_datadev() 627 &info->agf_bp); in __xfs_getfsmap_datadev() 661 if (info->agf_bp) { in __xfs_getfsmap_datadev() 662 xfs_trans_brelse(tp, info->agf_bp); in __xfs_getfsmap_datadev() 663 info->agf_bp = NULL; in __xfs_getfsmap_datadev() 682 *curpp = xfs_rmapbt_init_cursor(tp->t_mountp, tp, info->agf_bp, in xfs_getfsmap_datadev_rmapbt_query() 715 *curpp = xfs_allocbt_init_cursor(tp->t_mountp, tp, info->agf_bp, in xfs_getfsmap_datadev_bnobt_query()
|
| /Linux-v5.4/fs/xfs/libxfs/ |
| D | xfs_ag.c | 546 struct xfs_buf *agf_bp; in xfs_ag_get_geometry() local 560 error = xfs_alloc_read_agf(mp, NULL, agno, 0, &agf_bp); in xfs_ag_get_geometry() 573 agf = XFS_BUF_TO_AGF(agf_bp); in xfs_ag_get_geometry() 584 xfs_buf_relse(agf_bp); in xfs_ag_get_geometry()
|