Home
last modified time | relevance | path

Searched refs:agi_bp (Results 1 – 10 of 10) sorted by relevance

/fs/xfs/scrub/
Dcommon.c414 error = xfs_ialloc_read_agi(sa->pag, sc->tp, &sa->agi_bp); in xchk_perag_read_headers()
437 ASSERT(sa->agi_bp == NULL); in xchk_perag_drain_and_lock()
487 if (sa->agi_bp) { in xchk_perag_drain_and_lock()
488 xfs_trans_brelse(sc->tp, sa->agi_bp); in xchk_perag_drain_and_lock()
489 sa->agi_bp = NULL; in xchk_perag_drain_and_lock()
572 if (sa->agi_bp && in xchk_ag_btcur_init()
574 sa->ino_cur = xfs_inobt_init_cursor(sa->pag, sc->tp, sa->agi_bp, in xchk_ag_btcur_init()
579 if (sa->agi_bp && xfs_has_finobt(mp) && in xchk_ag_btcur_init()
581 sa->fino_cur = xfs_inobt_init_cursor(sa->pag, sc->tp, sa->agi_bp, in xchk_ag_btcur_init()
611 if (sa->agi_bp) { in xchk_ag_free()
[all …]
Dagheader_repair.c852 struct xfs_buf *agi_bp, in xrep_agi_init_header() argument
855 struct xfs_agi *agi = agi_bp->b_addr; in xrep_agi_init_header()
860 memset(agi, 0, BBTOB(agi_bp->b_length)); in xrep_agi_init_header()
899 struct xfs_buf *agi_bp) in xrep_agi_calc_from_btrees() argument
902 struct xfs_agi *agi = agi_bp->b_addr; in xrep_agi_calc_from_btrees()
908 cur = xfs_inobt_init_cursor(sc->sa.pag, sc->tp, agi_bp, XFS_BTNUM_INO); in xrep_agi_calc_from_btrees()
928 cur = xfs_inobt_init_cursor(sc->sa.pag, sc->tp, agi_bp, in xrep_agi_calc_from_btrees()
947 struct xfs_buf *agi_bp) in xrep_agi_commit_new() argument
950 struct xfs_agi *agi = agi_bp->b_addr; in xrep_agi_commit_new()
956 xfs_trans_buf_set_type(sc->tp, agi_bp, XFS_BLFT_AGI_BUF); in xrep_agi_commit_new()
[all …]
Dagheader.c797 struct xfs_agi *agi = sc->sa.agi_bp->b_addr; in xchk_agi_xref_icounts()
810 xchk_block_xref_set_corrupt(sc, sc->sa.agi_bp); in xchk_agi_xref_icounts()
818 struct xfs_agi *agi = sc->sa.agi_bp->b_addr; in xchk_agi_xref_fiblocks()
830 xchk_block_xref_set_corrupt(sc, sc->sa.agi_bp); in xchk_agi_xref_fiblocks()
838 xchk_block_xref_set_corrupt(sc, sc->sa.agi_bp); in xchk_agi_xref_fiblocks()
891 xchk_buffer_recheck(sc, sc->sa.agi_bp); in xchk_agi()
893 agi = sc->sa.agi_bp->b_addr; in xchk_agi()
899 xchk_block_set_corrupt(sc, sc->sa.agi_bp); in xchk_agi()
904 xchk_block_set_corrupt(sc, sc->sa.agi_bp); in xchk_agi()
908 xchk_block_set_corrupt(sc, sc->sa.agi_bp); in xchk_agi()
[all …]
Drepair.c150 if (sc->sa.agi_bp) { in xrep_roll_ag_trans()
151 xfs_ialloc_log_agi(sc->tp, sc->sa.agi_bp, XFS_AGI_MAGICNUM); in xrep_roll_ag_trans()
152 xfs_trans_bhold(sc->tp, sc->sa.agi_bp); in xrep_roll_ag_trans()
171 if (sc->sa.agi_bp) in xrep_roll_ag_trans()
172 xfs_trans_bjoin(sc->tp, sc->sa.agi_bp); in xrep_roll_ag_trans()
195 if (sc->sa.agi_bp) { in xrep_defer_finish()
196 xfs_ialloc_log_agi(sc->tp, sc->sa.agi_bp, XFS_AGI_MAGICNUM); in xrep_defer_finish()
197 xfs_trans_bhold(sc->tp, sc->sa.agi_bp); in xrep_defer_finish()
221 if (sc->sa.agi_bp) in xrep_defer_finish()
222 xfs_trans_bhold_release(sc->tp, sc->sa.agi_bp); in xrep_defer_finish()
Dfscounters.c84 struct xfs_buf *agi_bp = NULL; in xchk_fscount_warmup() local
98 error = xfs_ialloc_read_agi(pag, sc->tp, &agi_bp); in xchk_fscount_warmup()
117 xfs_buf_relse(agi_bp); in xchk_fscount_warmup()
118 agi_bp = NULL; in xchk_fscount_warmup()
123 if (agi_bp) in xchk_fscount_warmup()
124 xfs_buf_relse(agi_bp); in xchk_fscount_warmup()
Dinode.c74 struct xfs_buf *agi_bp; in xchk_setup_inode() local
132 error = xchk_iget_agi(sc, sc->sm->sm_ino, &agi_bp, &ip); in xchk_setup_inode()
144 if (agi_bp == NULL) { in xchk_setup_inode()
145 ASSERT(agi_bp != NULL); in xchk_setup_inode()
Dscrub.h51 struct xfs_buf *agi_bp; member
Drmap.c449 cur = xfs_inobt_init_cursor(sc->sa.pag, sc->tp, sc->sa.agi_bp, in xchk_rmapbt_walk_ag_metadata()
461 sc->sa.agi_bp, XFS_BTNUM_FINO); in xchk_rmapbt_walk_ag_metadata()
/fs/xfs/
Dxfs_iwalk.c408 struct xfs_buf *agi_bp = NULL; in xfs_iwalk_ag() local
417 error = xfs_iwalk_ag_start(iwag, agino, &cur, &agi_bp, &has_more); in xfs_iwalk_ag()
475 error = xfs_iwalk_run_callbacks(iwag, &cur, &agi_bp, &has_more); in xfs_iwalk_ag()
482 error = xfs_iwalk_run_callbacks(iwag, &cur, &agi_bp, &has_more); in xfs_iwalk_ag()
485 xfs_iwalk_del_inobt(iwag->tp, &cur, &agi_bp, error); in xfs_iwalk_ag()
/fs/xfs/libxfs/
Dxfs_ag.c1118 struct xfs_buf *agi_bp; in xfs_ag_get_geometry() local
1126 error = xfs_ialloc_read_agi(pag, NULL, &agi_bp); in xfs_ag_get_geometry()
1137 agi = agi_bp->b_addr; in xfs_ag_get_geometry()
1153 xfs_buf_relse(agi_bp); in xfs_ag_get_geometry()