Home
last modified time | relevance | path

Searched refs:pag_agno (Results 1 – 25 of 46) sorted by relevance

12

/linux-6.12.1/fs/xfs/scrub/
Dnewbt.c61 sz = xfs_ag_block_count(sc->mp, sc->sa.pag->pag_agno); in xrep_newbt_estimate_slack()
193 .fsbno = XFS_AGB_TO_FSB(mp, pag->pag_agno, agbno), in xrep_newbt_add_extent()
209 if (agno == sc->sa.pag->pag_agno && in xrep_newbt_validate_ag_alloc_hint()
213 xnr->alloc_hint = XFS_AGB_TO_FSB(sc->mp, sc->sa.pag->pag_agno, in xrep_newbt_validate_ag_alloc_hint()
259 if (agno != sc->sa.pag->pag_agno) { in xrep_newbt_alloc_ag_blocks()
260 ASSERT(agno == sc->sa.pag->pag_agno); in xrep_newbt_alloc_ag_blocks()
388 trace_xrep_newbt_free_blocks(sc->mp, resv->pag->pag_agno, in xrep_newbt_free_extent()
406 trace_xrep_newbt_free_blocks(sc->mp, resv->pag->pag_agno, free_agbno, in xrep_newbt_free_extent()
416 fsbno = XFS_AGB_TO_FSB(sc->mp, resv->pag->pag_agno, free_agbno); in xrep_newbt_free_extent()
544 trace_xrep_newbt_claim_block(mp, resv->pag->pag_agno, agbno, 1, in xrep_newbt_claim_block()
[all …]
Dialloc_repair.c151 xfs_agnumber_t agno = ri->sc->sa.pag->pag_agno; in xrep_ibt_check_ifree()
197 trace_xrep_ibt_found(ri->sc->mp, ri->sc->sa.pag->pag_agno, &ri->rie); in xrep_ibt_stash()
310 imap.im_blkno = XFS_AGB_TO_DADDR(mp, sc->sa.pag->pag_agno, cluster_bno); in xrep_ibt_process_cluster()
426 trace_xrep_ibt_walk_rmap(mp, ri->sc->sa.pag->pag_agno, in xrep_ibt_record_inode_blocks()
659 fsbno = XFS_AGB_TO_FSB(sc->mp, sc->sa.pag->pag_agno, in xrep_ibt_build_new_trees()
680 fsbno = XFS_AGB_TO_FSB(sc->mp, sc->sa.pag->pag_agno, in xrep_ibt_build_new_trees()
824 xfs_agino_range(mp, sc->sa.pag->pag_agno, &first_agino, &last_agino); in xrep_iallocbt()
Dagheader_repair.c211 agf->agf_seqno = cpu_to_be32(pag->pag_agno); in xrep_agf_init_header()
387 XFS_AG_DADDR(mp, sc->sa.pag->pag_agno, in xrep_agf()
690 agfl->agfl_seqno = cpu_to_be32(sc->sa.pag->pag_agno); in xrep_agfl_init_header()
744 XFS_AG_DADDR(mp, sc->sa.pag->pag_agno, in xrep_agfl()
900 agi->agi_seqno = cpu_to_be32(pag->pag_agno); in xrep_agi_init_header()
1045 ino = XFS_AGINO_TO_INO(sc->mp, sc->sa.pag->pag_agno, agino); in xrep_iunlink_reload_next()
1119 if (XFS_INO_TO_AGNO(mp, ip->i_ino) != pag->pag_agno) in xrep_iunlink_igrab()
1143 ASSERT(XFS_INO_TO_AGNO(mp, ip->i_ino) == ragi->sc->sa.pag->pag_agno); in xrep_iunlink_visit()
1214 if (XFS_INO_TO_AGNO(mp, ip->i_ino) != pag->pag_agno) in xrep_iunlink_mark_incore()
1282 XFS_AGINO_TO_INO(mp, sc->sa.pag->pag_agno, in xrep_iunlink_mark_ondisk_rec()
[all …]
Dcow_repair.c148 fsbno = XFS_AGB_TO_FSB(xc->sc->mp, cur->bc_ag.pag->pag_agno, in xrep_cow_mark_shared_staging()
181 XFS_AGB_TO_FSB(xc->sc->mp, cur->bc_ag.pag->pag_agno, in xrep_cow_mark_missing_staging()
225 fsbno = XFS_AGB_TO_FSB(xc->sc->mp, cur->bc_ag.pag->pag_agno, rec_bno); in xrep_cow_mark_missing_staging_rmap()
278 XFS_AGB_TO_FSB(sc->mp, pag->pag_agno, in xrep_cow_find_bad()
Drmap_repair.c234 trace_xrep_rmap_found(sc->mp, sc->sa.pag->pag_agno, &rmap); in xrep_rmap_stash()
347 rf->rr->sc->sa.pag->pag_agno) in xrep_rmap_visit_bmbt()
394 if (XFS_FSB_TO_AGNO(cur->bc_mp, fsbno) != rf->rr->sc->sa.pag->pag_agno) in xrep_rmap_visit_iroot_btree_block()
804 if (!xfs_ag_contains_log(sc->mp, sc->sa.pag->pag_agno)) in xrep_rmap_find_log_rmaps()
979 .agno = rr->sc->sa.pag->pag_agno, in xrep_rmap_try_reserve()
1293 fsbno = XFS_AGB_TO_FSB(sc->mp, pag->pag_agno, XFS_RMAP_BLOCK(sc->mp)); in xrep_rmap_build_new_tree()
1556 trace_xrep_rmap_live_update(mp, rr->sc->sa.pag->pag_agno, action, p); in xrep_rmapbt_live_update()
1600 sc->sa.pag->pag_agno); in xrep_rmap_setup_scan()
Dalloc_repair.c213 trace_xrep_abt_found(sc->mp, sc->sa.pag->pag_agno, &arec); in xrep_abt_stash()
487 trace_xrep_newbt_alloc_ag_blocks(sc->mp, sc->sa.pag->pag_agno, in xrep_abt_reserve_space()
546 xfs_rmap_alloc_extent(sc->tp, pag->pag_agno, resv->agbno, in xrep_abt_dispose_one()
557 trace_xrep_newbt_free_blocks(sc->mp, resv->pag->pag_agno, free_agbno, in xrep_abt_dispose_one()
Drepair.c417 args.agno = sc->sa.pag->pag_agno; in xrep_fix_freelist()
486 daddr = XFS_AGB_TO_DADDR(mp, ri->sc->sa.pag->pag_agno, agbno); in xrep_findroot_block()
615 trace_xrep_findroot_block(mp, ri->sc->sa.pag->pag_agno, agbno, in xrep_findroot_block()
976 sc->sa.pag->pag_agno); in xrep_reset_perag_resv()
Dreap.c266 xfs_agnumber_t agno = sc->sa.pag->pag_agno; in xreap_agextent_binval()
394 fsbno = XFS_AGB_TO_FSB(sc->mp, sc->sa.pag->pag_agno, agbno); in xreap_agextent_iter()
783 xfs_agnumber_t agno = sc->sa.pag->pag_agno; in xreap_bmapi_binval()
/linux-6.12.1/fs/xfs/
Dxfs_iwalk.c103 xfs_agnumber_t agno = pag->pag_agno; in xfs_iwalk_ichunk_ra()
187 trace_xfs_iwalk_ag_rec(mp, pag->pag_agno, irec); in xfs_iwalk_ag_recs()
193 error = iwag->inobt_walk_fn(mp, tp, pag->pag_agno, irec, in xfs_iwalk_ag_recs()
211 ino = XFS_AGINO_TO_INO(mp, pag->pag_agno, in xfs_iwalk_ag_recs()
308 iwag->lastino = XFS_AGINO_TO_INO(mp, pag->pag_agno, in xfs_iwalk_ag_start()
409 ASSERT(pag->pag_agno == XFS_INO_TO_AGNO(mp, iwag->startino)); in xfs_iwalk_ag()
428 rec_fsino = XFS_AGINO_TO_INO(mp, pag->pag_agno, irec->ir_startino); in xfs_iwalk_ag()
676 startino = XFS_AGINO_TO_INO(mp, pag->pag_agno + 1, 0); in xfs_iwalk_threaded()
767 iwag.startino = XFS_AGINO_TO_INO(mp, pag->pag_agno + 1, 0); in xfs_inobt_walk()
Dxfs_extent_busy.c37 new->agno = pag->pag_agno; in xfs_extent_busy_insert_list()
44 trace_xfs_extent_busy(pag->pag_mount, pag->pag_agno, bno, len); in xfs_extent_busy_insert_list()
283 trace_xfs_extent_busy_reuse(mp, pag->pag_agno, fbno, flen); in xfs_extent_busy_update_extent()
289 trace_xfs_extent_busy_force(mp, pag->pag_agno, fbno, flen); in xfs_extent_busy_update_extent()
572 busyp->agno == pag->pag_agno); in xfs_extent_busy_clear()
Dxfs_filestream.c230 ap->blkno = XFS_AGB_TO_FSB(args->mp, pag->pag_agno, 0); in xfs_filestream_lookup_association()
278 agno = (item->pag->pag_agno + 1) % mp->m_sb.sb_agcount; in xfs_filestream_create_association()
373 ap->blkno = XFS_AGB_TO_FSB(mp, args->pag->pag_agno, 0); in xfs_filestream_select_ag()
Dxfs_fsmap.c356 info->pag ? info->pag->pag_agno : NULLAGNUMBER, rec); in xfs_getfsmap_helper()
399 fsb = XFS_AGB_TO_FSB(mp, cur->bc_ag.pag->pag_agno, rec->rm_startblock); in xfs_getfsmap_datadev_helper()
417 rec_daddr = XFS_AGB_TO_DADDR(mp, cur->bc_ag.pag->pag_agno, in xfs_getfsmap_datadev_bnobt_helper()
529 if (pag->pag_agno == end_ag) { in __xfs_getfsmap_datadev()
551 trace_xfs_fsmap_low_key(mp, info->dev, pag->pag_agno, in __xfs_getfsmap_datadev()
553 trace_xfs_fsmap_high_key(mp, info->dev, pag->pag_agno, in __xfs_getfsmap_datadev()
564 if (pag->pag_agno == start_ag) in __xfs_getfsmap_datadev()
572 if (pag->pag_agno == end_ag) { in __xfs_getfsmap_datadev()
Dxfs_discard.c242 trace_xfs_discard_exclude(mp, pag->pag_agno, fbno, flen); in xfs_trim_gather_extents()
246 trace_xfs_discard_exclude(mp, pag->pag_agno, fbno, flen); in xfs_trim_gather_extents()
264 trace_xfs_discard_toosmall(mp, pag->pag_agno, fbno, flen); in xfs_trim_gather_extents()
276 trace_xfs_discard_busy(mp, pag->pag_agno, fbno, flen); in xfs_trim_gather_extents()
Dxfs_health.c236 trace_xfs_ag_mark_sick(pag->pag_mount, pag->pag_agno, mask); in xfs_ag_mark_sick()
250 trace_xfs_ag_mark_corrupt(pag->pag_mount, pag->pag_agno, mask); in xfs_ag_mark_corrupt()
265 trace_xfs_ag_mark_healthy(pag->pag_mount, pag->pag_agno, mask); in xfs_ag_mark_healthy()
Dxfs_iunlink_item.c83 trace_xfs_iunlink_update_dinode(mp, iup->pag->pag_agno, in xfs_iunlink_log_dinode()
Dxfs_extfree_item.c365 return ra->xefi_pag->pag_agno - rb->xefi_pag->pag_agno; in xfs_extent_free_diff_items()
550 error = xfs_free_ag_extent(tp, agbp, xefi->xefi_pag->pag_agno, in xfs_agfl_free_finish_item()
Dxfs_refcount_item.c247 return ra->ri_pag->pag_agno - rb->ri_pag->pag_agno; in xfs_refcount_update_diff_items()
/linux-6.12.1/fs/xfs/libxfs/
Dxfs_ialloc.c145 cur->bc_ops->name, cur->bc_ag.pag->pag_agno, fa); in xfs_inobt_complain_bad_rec()
609 trace_xfs_irec_merge_pre(mp, pag->pag_agno, rec.ir_startino, in xfs_inobt_insert_sprec()
616 trace_xfs_irec_merge_post(mp, pag->pag_agno, nrec->ir_startino, in xfs_inobt_insert_sprec()
771 XFS_AGB_TO_FSB(args.mp, pag->pag_agno, in xfs_ialloc_ag_alloc()
814 XFS_AGB_TO_FSB(args.mp, pag->pag_agno, in xfs_ialloc_ag_alloc()
827 XFS_AGB_TO_FSB(args.mp, pag->pag_agno, in xfs_ialloc_ag_alloc()
863 XFS_AGB_TO_FSB(args.mp, pag->pag_agno, in xfs_ialloc_ag_alloc()
887 error = xfs_ialloc_inode_init(args.mp, tp, NULL, newlen, pag->pag_agno, in xfs_ialloc_ag_alloc()
918 XFS_AGINO_TO_INO(args.mp, pag->pag_agno, in xfs_ialloc_ag_alloc()
1130 if (pagno == pag->pag_agno) { in xfs_dialloc_ag_inobt()
[all …]
Dxfs_ag_resv.c140 if (pag->pag_agno == 0) in __xfs_ag_resv_free()
209 trace_xfs_ag_resv_init_error(pag->pag_mount, pag->pag_agno, in __xfs_ag_resv_init()
213 pag->pag_agno); in __xfs_ag_resv_init()
223 if (pag->pag_agno == 0) in __xfs_ag_resv_init()
Dxfs_refcount_btree.c77 XFS_AGB_TO_FSB(args.mp, args.pag->pag_agno, in xfs_refcountbt_alloc_block()
85 ASSERT(args.agno == cur->bc_ag.pag->pag_agno); in xfs_refcountbt_alloc_block()
173 ASSERT(cur->bc_ag.pag->pag_agno == be32_to_cpu(agf->agf_seqno)); in xfs_refcountbt_init_ptr_from_cur()
365 ASSERT(pag->pag_agno < mp->m_sb.sb_agcount); in xfs_refcountbt_init_cursor()
518 if (xfs_ag_contains_log(mp, pag->pag_agno)) in xfs_refcountbt_calc_reserves()
Dxfs_ag.h34 xfs_agnumber_t pag_agno; /* AG this structure belongs to */ member
240 *agno = pag->pag_agno + 1; in xfs_perag_next()
273 *agno = pag->pag_agno + 1; in xfs_perag_next_wrap()
Dxfs_ialloc_btree.c123 XFS_AGB_TO_FSB(args.mp, args.pag->pag_agno, sbno)); in __xfs_inobt_alloc_block()
251 ASSERT(cur->bc_ag.pag->pag_agno == be32_to_cpu(agi->agi_seqno)); in xfs_inobt_init_ptr_from_cur()
263 ASSERT(cur->bc_ag.pag->pag_agno == be32_to_cpu(agi->agi_seqno)); in xfs_finobt_init_ptr_from_cur()
730 if (xfs_ag_contains_log(mp, pag->pag_agno)) in xfs_inobt_max_size()
Dxfs_ag.c311 pag->pag_agno = index; in xfs_initialize_perag()
838 ASSERT(pag->pag_agno == mp->m_sb.sb_agcount - 1); in xfs_ag_shrink_space()
875 XFS_AGB_TO_FSB(mp, pag->pag_agno, aglen - delta)); in xfs_ag_shrink_space()
966 ASSERT(pag->pag_agno == pag->pag_mount->m_sb.sb_agcount - 1); in xfs_ag_extend_space()
1034 ageo->ag_number = pag->pag_agno; in xfs_ag_get_geometry()
Dxfs_alloc.c278 cur->bc_ops->name, cur->bc_ag.pag->pag_agno, fa); in xfs_alloc_complain_bad_rec()
802 if (bp->b_pag && be32_to_cpu(agfl->agfl_seqno) != bp->b_pag->pag_agno) in xfs_agfl_verify()
888 XFS_AG_DADDR(mp, pag->pag_agno, XFS_AGFL_DADDR(mp)), in xfs_alloc_read_agfl()
2615 pag->pag_agno, pag->pagf_flcount); in xfs_agfl_reset()
3193 if (bp->b_pag && seqno != bp->b_pag->pag_agno) in xfs_validate_ag_length()
3365 trace_xfs_read_agf(pag->pag_mount, pag->pag_agno); in xfs_read_agf()
3368 XFS_AG_DADDR(mp, pag->pag_agno, XFS_AGF_DADDR(mp)), in xfs_read_agf()
3396 trace_xfs_alloc_read_agf(pag->pag_mount, pag->pag_agno); in xfs_alloc_read_agf()
3658 ASSERT(args->pag->pag_agno == agno); in xfs_alloc_vextent_this_ag()
3871 ASSERT(args->pag->pag_agno == XFS_FSB_TO_AGNO(mp, target)); in xfs_alloc_vextent_exact_bno()
[all …]
Dxfs_refcount.c157 cur->bc_ag.pag->pag_agno, fa); in xfs_refcount_complain_bad_rec()
1158 cur->bc_ag.pag->pag_agno, in xfs_refcount_adjust_extents()
1221 cur->bc_ag.pag->pag_agno, in xfs_refcount_adjust_extents()
1323 ri->ri_startblock = XFS_AGB_TO_FSB(mp, pag->pag_agno, new_agbno); in xfs_refcount_continue_op()
1326 ASSERT(pag->pag_agno == XFS_FSB_TO_AGNO(mp, ri->ri_startblock)); in xfs_refcount_continue_op()
1959 fsb = XFS_AGB_TO_FSB(mp, pag->pag_agno, in xfs_refcount_recover_cow_leftovers()

12