| /linux-6.15/fs/xfs/scrub/ |
| H A D | agheader_repair.c | 160 struct xfs_buf *agf_bp, in xrep_agf_find_btrees() argument 200 struct xfs_buf *agf_bp, in xrep_agf_init_header() argument 252 struct xfs_buf *agf_bp) in xrep_agf_calc_from_btrees() argument 315 struct xfs_buf *agf_bp) in xrep_agf_commit_new() argument 325 xfs_trans_log_buf(sc->tp, agf_bp, 0, BBTOB(agf_bp->b_length) - 1); in xrep_agf_commit_new() 373 struct xfs_buf *agf_bp; in xrep_agf() local 393 agf = agf_bp->b_addr; in xrep_agf() 533 struct xfs_buf *agf_bp, in xrep_agfl_collect_blocks() argument 603 struct xfs_buf *agf_bp, in xrep_agfl_update_agf() argument 719 struct xfs_buf *agf_bp; in xrep_agfl() local [all …]
|
| H A D | agheader.c | 615 xchk_buffer_recheck(sc, sc->sa.agf_bp); in xchk_agf() 617 agf = sc->sa.agf_bp->b_addr; in xchk_agf() 623 xchk_block_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf() 628 xchk_block_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf() 632 xchk_block_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf() 636 xchk_block_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf() 640 xchk_block_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf() 671 xchk_block_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf() 675 xchk_block_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf() 798 if (!sc->sa.agf_bp) in xchk_agfl() [all …]
|
| H A D | repair.c | 175 if (sc->sa.agf_bp) { in xrep_roll_ag_trans() 177 xfs_trans_bhold(sc->tp, sc->sa.agf_bp); in xrep_roll_ag_trans() 193 if (sc->sa.agf_bp) in xrep_roll_ag_trans() 230 if (sc->sa.agf_bp) { in xrep_defer_finish() 253 if (sc->sa.agf_bp) in xrep_defer_finish() 708 struct xfs_buf *agf_bp, in xrep_find_ag_btree_roots() argument 718 ASSERT(xfs_buf_islocked(agf_bp)); in xrep_find_ag_btree_roots() 723 ri.agf = agf_bp->b_addr; in xrep_find_ag_btree_roots() 910 sa->agf_bp, sc->sa.pag); in xrep_ag_btcur_init() 934 if (bp != sc->sa.agf_bp) { in xrep_reinit_pagf() [all …]
|
| H A D | reap.c | 130 error = xfs_rmap_alloc(sc->tp, sc->sa.agf_bp, sc->sa.pag, agbno, 1, in xreap_put_freelist() 140 error = xfs_alloc_put_freelist(sc->sa.pag, sc->tp, sc->sa.agf_bp, in xreap_put_freelist() 344 cur = xfs_rmapbt_init_cursor(sc->mp, sc->tp, sc->sa.agf_bp, in xreap_agextent_select() 432 return xfs_rmap_free(sc->tp, sc->sa.agf_bp, sc->sa.pag, agbno, in xreap_agextent_iter() 637 xfs_trans_bhold(sc->tp, sc->sa.agf_bp); in xreap_fsmeta_extent() 639 xfs_trans_bjoin(sc->tp, sc->sa.agf_bp); in xreap_fsmeta_extent() 649 xfs_trans_brelse(sc->tp, sc->sa.agf_bp); in xreap_fsmeta_extent() 650 sc->sa.agf_bp = NULL; in xreap_fsmeta_extent() 975 cur = xfs_rmapbt_init_cursor(sc->mp, sc->tp, sc->sa.agf_bp, in xreap_bmapi_select() 1260 xfs_trans_brelse(sc->tp, sc->sa.agf_bp); in xreap_ifork_extent() [all …]
|
| H A D | fscounters.c | 76 struct xfs_buf *agf_bp = NULL; in xchk_fscount_warmup() local 91 error = xfs_alloc_read_agf(pag, sc->tp, 0, &agf_bp); in xchk_fscount_warmup() 105 xfs_buf_relse(agf_bp); in xchk_fscount_warmup() 106 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()
|
| H A D | common.c | 471 error = xfs_alloc_read_agf(sa->pag, sc->tp, 0, &sa->agf_bp); in xchk_perag_read_headers() 491 ASSERT(sa->agf_bp == NULL); in xchk_perag_drain_and_lock() 535 if (sa->agf_bp) { in xchk_perag_drain_and_lock() 536 xfs_trans_brelse(sc->tp, sa->agf_bp); in xchk_perag_drain_and_lock() 537 sa->agf_bp = NULL; in xchk_perag_drain_and_lock() 610 if (sa->agf_bp) { in xchk_ag_btcur_init() 626 sa->agf_bp, sa->pag); in xchk_ag_btcur_init() 634 sa->agf_bp, sa->pag); in xchk_ag_btcur_init() 665 if (sa->agf_bp) { in xchk_ag_free() 666 xfs_trans_brelse(sc->tp, sa->agf_bp); in xchk_ag_free() [all …]
|
| H A D | rmap_repair.c | 951 sa->agf_bp = NULL; in xrep_rmap_find_rmaps() 999 sc->sa.bno_cur = xfs_bnobt_init_cursor(sc->mp, sc->tp, sc->sa.agf_bp, in xrep_rmap_find_rmaps() 1052 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xrep_rmap_try_reserve() 1084 sc->sa.bno_cur = xfs_bnobt_init_cursor(sc->mp, sc->tp, sc->sa.agf_bp, in xrep_rmap_try_reserve() 1093 sc->sa.cnt_cur = xfs_cntbt_init_cursor(sc->mp, sc->tp, sc->sa.agf_bp, in xrep_rmap_try_reserve() 1192 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xrep_rmap_reset_counters() 1201 xfs_alloc_log_agf(sc->tp, sc->sa.agf_bp, XFS_AGF_BTREEBLKS); in xrep_rmap_reset_counters() 1342 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xrep_rmap_build_new_tree() 1414 xfs_rmapbt_commit_staged_btree(rmap_cur, sc->tp, sc->sa.agf_bp); in xrep_rmap_build_new_tree() 1512 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xrep_rmap_remove_old_tree() [all …]
|
| H A D | alloc_repair.c | 366 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xrep_abt_find_freespace() 653 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xrep_abt_reset_counters() 675 xfs_alloc_log_agf(sc->tp, sc->sa.agf_bp, XFS_AGF_BTREEBLKS | in xrep_abt_reset_counters() 793 xfs_allocbt_commit_staged_btree(bno_cur, sc->tp, sc->sa.agf_bp); in xrep_abt_build_new_trees() 795 xfs_allocbt_commit_staged_btree(cnt_cur, sc->tp, sc->sa.agf_bp); in xrep_abt_build_new_trees()
|
| H A D | rmap.c | 402 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_rmapbt_walk_ag_metadata() 424 cur = xfs_bnobt_init_cursor(sc->mp, sc->tp, sc->sa.agf_bp, in xchk_rmapbt_walk_ag_metadata() 434 cur = xfs_cntbt_init_cursor(sc->mp, sc->tp, sc->sa.agf_bp, in xchk_rmapbt_walk_ag_metadata() 483 sc->sa.agf_bp, sc->sa.pag); in xchk_rmapbt_walk_ag_metadata()
|
| H A D | scrub.h | 110 struct xfs_buf *agf_bp; member
|
| H A D | repair.h | 74 int xrep_find_ag_btree_roots(struct xfs_scrub *sc, struct xfs_buf *agf_bp,
|
| H A D | refcount_repair.c | 648 xfs_refcountbt_commit_staged_btree(refc_cur, sc->tp, sc->sa.agf_bp); in xrep_refc_build_new_tree()
|
| /linux-6.15/fs/xfs/ |
| H A D | xfs_notify_failure.c | 290 struct xfs_buf *agf_bp = NULL; in xfs_dax_notify_dev_failure() local 298 error = xfs_alloc_read_agf(pag, tp, 0, &agf_bp); in xfs_dax_notify_dev_failure() 304 cur = xfs_rmapbt_init_cursor(mp, tp, agf_bp, pag); in xfs_dax_notify_dev_failure() 331 if (agf_bp) in xfs_dax_notify_dev_failure() 332 xfs_trans_brelse(tp, agf_bp); in xfs_dax_notify_dev_failure()
|
| H A D | xfs_fsmap.c | 163 struct xfs_buf *agf_bp; /* AGF, for refcount queries */ member 226 cur = xfs_refcountbt_init_cursor(mp, tp, info->agf_bp, in xfs_getfsmap_is_shared() 550 xfs_trans_brelse(tp, info->agf_bp); in __xfs_getfsmap_datadev() 551 info->agf_bp = NULL; in __xfs_getfsmap_datadev() 554 error = xfs_alloc_read_agf(pag, tp, 0, &info->agf_bp); in __xfs_getfsmap_datadev() 591 if (info->agf_bp) { in __xfs_getfsmap_datadev() 592 xfs_trans_brelse(tp, info->agf_bp); in __xfs_getfsmap_datadev() 593 info->agf_bp = NULL; in __xfs_getfsmap_datadev() 619 *curpp = xfs_rmapbt_init_cursor(tp->t_mountp, tp, info->agf_bp, in xfs_getfsmap_datadev_rmapbt_query() 652 *curpp = xfs_bnobt_init_cursor(tp->t_mountp, tp, info->agf_bp, in xfs_getfsmap_datadev_bnobt_query()
|
| /linux-6.15/fs/xfs/libxfs/ |
| H A D | xfs_ag.c | 942 struct xfs_buf *agf_bp; in xfs_ag_get_geometry() local 952 error = xfs_alloc_read_agf(pag, NULL, 0, &agf_bp); in xfs_ag_get_geometry() 964 agf = agf_bp->b_addr; in xfs_ag_get_geometry() 974 xfs_buf_relse(agf_bp); in xfs_ag_get_geometry()
|