Home
last modified time | relevance | path

Searched refs:agf_bp (Results 1 – 14 of 14) sorted by relevance

/linux/fs/xfs/scrub/
H A Dagheader_repair.c183 struct xfs_buf *agf_bp, in xrep_agf_find_btrees()
187 struct xfs_agf *old_agf = agf_bp->b_addr; in xrep_agf_find_btrees()
191 error = xrep_find_ag_btree_roots(sc, agf_bp, fab, agfl_bp); in xrep_agf_find_btrees()
223 struct xfs_buf *agf_bp,
228 struct xfs_agf *agf = agf_bp->b_addr; in xrep_agf_set_roots()
231 memset(agf, 0, BBTOB(agf_bp->b_length)); in xrep_agf_set_roots()
275 struct xfs_buf *agf_bp) in xrep_agf_calc_from_btrees()
279 struct xfs_agf *agf = agf_bp->b_addr; in xrep_agf_calc_from_btrees()
286 cur = xfs_bnobt_init_cursor(mp, sc->tp, agf_bp, sc->sa.pag); in xrep_agf_calc_from_btrees()
299 cur = xfs_cntbt_init_cursor(mp, sc->tp, agf_bp, s in xrep_agf_calc_from_btrees()
160 xrep_agf_find_btrees(struct xfs_scrub * sc,struct xfs_buf * agf_bp,struct xrep_find_ag_btree * fab,struct xfs_buf * agfl_bp) xrep_agf_find_btrees() argument
200 xrep_agf_init_header(struct xfs_scrub * sc,struct xfs_buf * agf_bp,struct xfs_agf * old_agf) xrep_agf_init_header() argument
252 xrep_agf_calc_from_btrees(struct xfs_scrub * sc,struct xfs_buf * agf_bp) xrep_agf_calc_from_btrees() argument
315 xrep_agf_commit_new(struct xfs_scrub * sc,struct xfs_buf * agf_bp) xrep_agf_commit_new() argument
373 struct xfs_buf *agf_bp; xrep_agf() local
533 xrep_agfl_collect_blocks(struct xfs_scrub * sc,struct xfs_buf * agf_bp,struct xagb_bitmap * agfl_extents,xfs_agblock_t * flcount) xrep_agfl_collect_blocks() argument
603 xrep_agfl_update_agf(struct xfs_scrub * sc,struct xfs_buf * agf_bp,xfs_agblock_t flcount) xrep_agfl_update_agf() argument
728 struct xfs_buf *agf_bp; xrep_agfl() local
876 struct xfs_buf *agf_bp; xrep_agi_find_btrees() local
[all...]
H A Dagheader.c489 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_cntbt()
501 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_cntbt()
509 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_btreeblks()
524 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_btreeblks()
533 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_btreeblks()
541 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_btreeblks()
558 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_refcblks()
583 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref()
591 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref()
602 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp);
[all...]
H A Drepair.c175 if (sc->sa.agf_bp) { in xrep_roll_ag_trans()
176 xfs_alloc_log_agf(sc->tp, sc->sa.agf_bp, XFS_AGF_MAGICNUM); 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()
194 xfs_trans_bjoin(sc->tp, sc->sa.agf_bp); in xrep_roll_ag_trans()
230 if (sc->sa.agf_bp) { in xrep_defer_finish()
231 xfs_alloc_log_agf(sc->tp, sc->sa.agf_bp, XFS_AGF_MAGICNUM); in xrep_defer_finish()
232 xfs_trans_bhold(sc->tp, sc->sa.agf_bp); in xrep_defer_finish()
253 if (sc->sa.agf_bp) in xrep_defer_finish()
254 xfs_trans_bhold_release(sc->tp, sc->sa.agf_bp); in xrep_defer_finish()
723 xrep_find_ag_btree_roots(struct xfs_scrub * sc,struct xfs_buf * agf_bp,struct xrep_find_ag_btree * btree_info,struct xfs_buf * agfl_bp) xrep_find_ag_btree_roots() argument
[all...]
H A Dfscounters.c76 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 Dreap.c148 error = xfs_rmap_alloc(sc->tp, sc->sa.agf_bp, sc->sa.pag, agbno, 1, in xreap_put_freelist()
158 error = xfs_alloc_put_freelist(sc->sa.pag, sc->tp, sc->sa.agf_bp, in xreap_put_freelist()
365 cur = xfs_rmapbt_init_cursor(sc->mp, sc->tp, sc->sa.agf_bp, in xreap_agextent_select()
811 error = xfs_alloc_read_agf(sc->sa.pag, sc->tp, 0, &sc->sa.agf_bp); in xreap_fsmeta_extent()
843 xfs_trans_bhold(sc->tp, sc->sa.agf_bp); in xreap_fsmeta_extent()
845 xfs_trans_bjoin(sc->tp, sc->sa.agf_bp); in xreap_fsmeta_extent()
855 xfs_trans_brelse(sc->tp, sc->sa.agf_bp); in xreap_fsmeta_extent()
856 sc->sa.agf_bp = NULL; in xreap_fsmeta_extent()
1286 cur = xfs_rmapbt_init_cursor(sc->mp, sc->tp, sc->sa.agf_bp,
1648 error = xfs_alloc_read_agf(sc->sa.pag, sc->tp, 0, &sc->sa.agf_bp); in xrep_reap_ifork()
[all...]
H A Drmap_repair.c948 sa->agf_bp = NULL; in xrep_rmap_find_rmaps()
994 sc->sa.bno_cur = xfs_bnobt_init_cursor(sc->mp, sc->tp, sc->sa.agf_bp, in xrep_rmap_find_rmaps()
1047 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xrep_rmap_try_reserve()
1079 sc->sa.bno_cur = xfs_bnobt_init_cursor(sc->mp, sc->tp, sc->sa.agf_bp, in xrep_rmap_try_reserve()
1088 sc->sa.cnt_cur = xfs_cntbt_init_cursor(sc->mp, sc->tp, sc->sa.agf_bp, in xrep_rmap_try_reserve()
1188 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xrep_rmap_reset_counters()
1197 xfs_alloc_log_agf(sc->tp, sc->sa.agf_bp, XFS_AGF_BTREEBLKS); in xrep_rmap_reset_counters()
1338 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xrep_rmap_build_new_tree()
1410 xfs_rmapbt_commit_staged_btree(rmap_cur, sc->tp, sc->sa.agf_bp); in xrep_rmap_build_new_tree()
1508 struct xfs_agf *agf = sc->sa.agf_bp in xrep_rmap_remove_old_tree()
[all...]
H A Dalloc_repair.c366 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xrep_abt_find_freespace()
658 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xrep_abt_reset_counters()
676 xfs_alloc_log_agf(sc->tp, sc->sa.agf_bp, XFS_AGF_BTREEBLKS | in xrep_abt_reset_counters()
794 xfs_allocbt_commit_staged_btree(bno_cur, sc->tp, sc->sa.agf_bp); in xrep_abt_build_new_trees()
796 xfs_allocbt_commit_staged_btree(cnt_cur, sc->tp, sc->sa.agf_bp); in xrep_abt_build_new_trees()
H A Drmap.c402 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 Dscrub.h110 struct xfs_buf *agf_bp; member
H A Drepair.h66 int xrep_find_ag_btree_roots(struct xfs_scrub *sc, struct xfs_buf *agf_bp,
H A Drefcount_repair.c643 xfs_refcountbt_commit_staged_btree(refc_cur, sc->tp, sc->sa.agf_bp); in xrep_refc_build_new_tree()
/linux/fs/xfs/
H A Dxfs_notify_failure.c297 struct xfs_buf *agf_bp = NULL; in xfs_dax_notify_dev_failure() local
305 error = xfs_alloc_read_agf(pag, tp, 0, &agf_bp); in xfs_dax_notify_dev_failure()
311 cur = xfs_rmapbt_init_cursor(mp, tp, agf_bp, pag); in xfs_dax_notify_dev_failure()
338 if (agf_bp) in xfs_dax_notify_dev_failure()
339 xfs_trans_brelse(tp, agf_bp); in xfs_dax_notify_dev_failure()
H A Dxfs_verify_media.c128 struct xfs_buf *agf_bp = NULL; in xfs_verify_report_losses()
138 error = xfs_alloc_read_agf(pag, tp, 0, &agf_bp); in xfs_verify_report_losses()
144 cur = xfs_rmapbt_init_cursor(mp, tp, agf_bp, pag); in xfs_verify_report_losses()
171 if (agf_bp)
172 xfs_trans_brelse(tp, agf_bp);
113 struct xfs_buf *agf_bp = NULL; xfs_verify_report_losses() local
H A Dxfs_fsmap.c163 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()