/Linux-v6.1/fs/xfs/scrub/ |
D | agheader_repair.c | 149 struct xfs_buf *agf_bp, in xrep_agf_find_btrees() argument 153 struct xfs_agf *old_agf = agf_bp->b_addr; in xrep_agf_find_btrees() 157 error = xrep_find_ag_btree_roots(sc, agf_bp, fab, agfl_bp); in xrep_agf_find_btrees() 190 struct xfs_buf *agf_bp, in xrep_agf_init_header() argument 194 struct xfs_agf *agf = agf_bp->b_addr; in xrep_agf_init_header() 197 memset(agf, 0, BBTOB(agf_bp->b_length)); in xrep_agf_init_header() 247 struct xfs_buf *agf_bp) in xrep_agf_calc_from_btrees() argument 251 struct xfs_agf *agf = agf_bp->b_addr; in xrep_agf_calc_from_btrees() 258 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, in xrep_agf_calc_from_btrees() 272 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() 301 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->sa.pag, sc->tp, sc->sa.agf_bp, in xrep_put_freelist() 538 struct xfs_buf *agf_bp = NULL; in xrep_reap_block() local 552 error = xfs_alloc_read_agf(sc->sa.pag, sc->tp, 0, &agf_bp); in xrep_reap_block() 556 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(pag, sc->tp, 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(sa->pag, sc->tp, 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-v6.1/fs/xfs/ |
D | xfs_notify_failure.c | 113 struct xfs_buf *agf_bp = NULL; in xfs_dax_notify_ddev_failure() local 132 error = xfs_alloc_read_agf(pag, tp, 0, &agf_bp); in xfs_dax_notify_ddev_failure() 138 cur = xfs_rmapbt_init_cursor(mp, tp, agf_bp, pag); in xfs_dax_notify_ddev_failure() 149 agf = agf_bp->b_addr; in xfs_dax_notify_ddev_failure() 158 xfs_trans_brelse(tp, agf_bp); in xfs_dax_notify_ddev_failure()
|
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() 645 error = xfs_alloc_read_agf(pag, tp, 0, &info->agf_bp); in __xfs_getfsmap_datadev() 686 if (info->agf_bp) { in __xfs_getfsmap_datadev() 687 xfs_trans_brelse(tp, info->agf_bp); in __xfs_getfsmap_datadev() 688 info->agf_bp = NULL; in __xfs_getfsmap_datadev() 714 *curpp = xfs_rmapbt_init_cursor(tp->t_mountp, tp, info->agf_bp, in xfs_getfsmap_datadev_rmapbt_query() 747 *curpp = xfs_allocbt_init_cursor(tp->t_mountp, tp, info->agf_bp, in xfs_getfsmap_datadev_bnobt_query()
|
/Linux-v6.1/fs/xfs/libxfs/ |
D | xfs_ag.c | 1006 struct xfs_buf *agf_bp; in xfs_ag_get_geometry() local 1016 error = xfs_alloc_read_agf(pag, NULL, 0, &agf_bp); in xfs_ag_get_geometry() 1028 agf = agf_bp->b_addr; in xfs_ag_get_geometry() 1038 xfs_buf_relse(agf_bp); in xfs_ag_get_geometry()
|