/Linux-v5.15/fs/xfs/scrub/ |
D | agheader_repair.c | 140 struct xfs_buf *agf_bp, in xrep_agf_find_btrees() argument 144 struct xfs_agf *old_agf = agf_bp->b_addr; in xrep_agf_find_btrees() 148 error = xrep_find_ag_btree_roots(sc, agf_bp, fab, agfl_bp); in xrep_agf_find_btrees() 181 struct xfs_buf *agf_bp, in xrep_agf_init_header() argument 185 struct xfs_agf *agf = agf_bp->b_addr; in xrep_agf_init_header() 188 memset(agf, 0, BBTOB(agf_bp->b_length)); in xrep_agf_init_header() 239 struct xfs_buf *agf_bp) in xrep_agf_calc_from_btrees() argument 243 struct xfs_agf *agf = agf_bp->b_addr; in xrep_agf_calc_from_btrees() 250 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, in xrep_agf_calc_from_btrees() 264 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, in xrep_agf_calc_from_btrees() [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() 302 error = xfs_alloc_get_freelist(sc->tp, sc->sa.agf_bp, &bno, 1); in xrep_alloc_ag_block() 512 error = xfs_rmap_alloc(sc->tp, sc->sa.agf_bp, sc->sa.pag, agbno, 1, in xrep_put_freelist() 518 error = xfs_alloc_put_freelist(sc->tp, sc->sa.agf_bp, sc->sa.agfl_bp, in xrep_put_freelist() 537 struct xfs_buf *agf_bp = NULL; in xrep_reap_block() local 552 error = xfs_alloc_read_agf(sc->mp, sc->tp, agno, 0, &agf_bp); in xrep_reap_block() 556 agf_bp = sc->sa.agf_bp; in xrep_reap_block() [all …]
|
D | agheader.c | 374 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_freeblks() 386 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_freeblks() 394 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_cntbt() 409 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_cntbt() 418 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_cntbt() 426 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_btreeblks() 443 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_btreeblks() 468 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_btreeblks() 476 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_refcblks() 487 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 | 421 error = xfs_alloc_read_agf(mp, sc->tp, agno, 0, &sa->agf_bp); in xchk_ag_read_headers() 466 if (sa->agf_bp && in xchk_ag_btcur_init() 469 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() 495 if (sa->agf_bp && xfs_has_rmapbt(mp) && in xchk_ag_btcur_init() 497 sa->rmap_cur = xfs_rmapbt_init_cursor(mp, sc->tp, sa->agf_bp, in xchk_ag_btcur_init() 502 if (sa->agf_bp && xfs_has_reflink(mp) && in xchk_ag_btcur_init() 505 sa->agf_bp, sa->pag); in xchk_ag_btcur_init() 520 if (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 | 41 struct xfs_buf *agf_bp; member
|
/Linux-v5.15/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-v5.15/fs/xfs/libxfs/ |
D | xfs_ag.c | 946 struct xfs_buf *agf_bp; in xfs_ag_get_geometry() local 960 error = xfs_alloc_read_agf(mp, NULL, agno, 0, &agf_bp); in xfs_ag_get_geometry() 974 agf = agf_bp->b_addr; in xfs_ag_get_geometry() 984 xfs_buf_relse(agf_bp); in xfs_ag_get_geometry()
|