Home
last modified time | relevance | path

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

12

/linux-6.1.9/fs/xfs/libxfs/ !
Dxfs_refcount.c53 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_lookup_le()
73 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_lookup_ge()
93 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_lookup_eq()
155 trace_xfs_refcount_get(cur->bc_mp, pag->pag_agno, irec); in xfs_refcount_get_rec()
161 pag->pag_agno); in xfs_refcount_get_rec()
182 trace_xfs_refcount_update(cur->bc_mp, cur->bc_ag.pag->pag_agno, irec); in xfs_refcount_update()
193 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_update()
210 trace_xfs_refcount_insert(cur->bc_mp, cur->bc_ag.pag->pag_agno, irec); in xfs_refcount_insert()
228 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_insert()
254 trace_xfs_refcount_delete(cur->bc_mp, cur->bc_ag.pag->pag_agno, &irec); in xfs_refcount_delete()
[all …]
Dxfs_rmap.c100 trace_xfs_rmap_update(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_rmap_update()
112 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_rmap_update()
128 trace_xfs_rmap_insert(rcur->bc_mp, rcur->bc_ag.pag->pag_agno, agbno, in xfs_rmap_insert()
154 rcur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_rmap_insert()
170 trace_xfs_rmap_delete(rcur->bc_mp, rcur->bc_ag.pag->pag_agno, agbno, in xfs_rmap_delete()
191 rcur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_rmap_delete()
252 pag->pag_agno); in xfs_rmap_get_rec()
275 cur->bc_ag.pag->pag_agno, rec->rm_startblock, in xfs_rmap_find_left_neighbor_helper()
326 cur->bc_ag.pag->pag_agno, bno, 0, owner, offset, flags); in xfs_rmap_find_left_neighbor()
358 cur->bc_ag.pag->pag_agno, irec->rm_startblock, in xfs_rmap_find_left_neighbor()
[all …]
Dxfs_ag_resv.c141 if (pag->pag_agno == 0) in __xfs_ag_resv_free()
158 trace_xfs_ag_resv_free_error(pag->pag_mount, pag->pag_agno, in __xfs_ag_resv_free()
221 trace_xfs_ag_resv_init_error(pag->pag_mount, pag->pag_agno, in __xfs_ag_resv_init()
225 pag->pag_agno); in __xfs_ag_resv_init()
235 if (pag->pag_agno == 0) in __xfs_ag_resv_init()
Dxfs_refcount_btree.c71 args.fsbno = XFS_AGB_TO_FSB(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcountbt_alloc_block()
80 trace_xfs_refcountbt_alloc_block(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcountbt_alloc_block()
86 ASSERT(args.agno == cur->bc_ag.pag->pag_agno); in xfs_refcountbt_alloc_block()
111 trace_xfs_refcountbt_free_block(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcountbt_free_block()
181 ASSERT(cur->bc_ag.pag->pag_agno == be32_to_cpu(agf->agf_seqno)); in xfs_refcountbt_init_ptr_from_cur()
334 ASSERT(pag->pag_agno < mp->m_sb.sb_agcount); in xfs_refcountbt_init_common()
519 if (xfs_ag_contains_log(mp, pag->pag_agno)) in xfs_refcountbt_calc_reserves()
Dxfs_ialloc.c140 cur->bc_ag.pag->pag_agno); in xfs_inobt_get_rec()
577 trace_xfs_irec_merge_pre(mp, pag->pag_agno, rec.ir_startino, in xfs_inobt_insert_sprec()
584 trace_xfs_irec_merge_post(mp, pag->pag_agno, nrec->ir_startino, in xfs_inobt_insert_sprec()
665 args.fsbno = XFS_AGB_TO_FSB(args.mp, pag->pag_agno, args.agbno); in xfs_ialloc_ag_alloc()
725 args.fsbno = XFS_AGB_TO_FSB(args.mp, pag->pag_agno, args.agbno); in xfs_ialloc_ag_alloc()
746 args.fsbno = XFS_AGB_TO_FSB(args.mp, pag->pag_agno, args.agbno); in xfs_ialloc_ag_alloc()
762 args.fsbno = XFS_AGB_TO_FSB(args.mp, pag->pag_agno, args.agbno); in xfs_ialloc_ag_alloc()
807 error = xfs_ialloc_inode_init(args.mp, tp, NULL, newlen, pag->pag_agno, in xfs_ialloc_ag_alloc()
839 XFS_AGINO_TO_INO(args.mp, pag->pag_agno, in xfs_ialloc_ag_alloc()
1022 if (pagno == pag->pag_agno) { in xfs_dialloc_ag_inobt()
[all …]
Dxfs_ag.h34 xfs_agnumber_t pag_agno; /* AG this structure belongs to */ member
195 *agno = pag->pag_agno + 1; in xfs_perag_next()
218 (agno) = (pag)->pag_agno + 1, \
Dxfs_ag.c82 trace_xfs_perag_get_tag(mp, pag->pag_agno, ref, _RET_IP_); in xfs_perag_get_tag()
94 trace_xfs_perag_put(pag->pag_mount, pag->pag_agno, ref, _RET_IP_); in xfs_perag_put()
291 pag->pag_agno = index; in xfs_initialize_perag()
840 ASSERT(pag->pag_agno == mp->m_sb.sb_agcount - 1); in xfs_ag_shrink_space()
859 args.fsbno = XFS_AGB_TO_FSB(mp, pag->pag_agno, aglen - delta); in xfs_ag_shrink_space()
865 error = xfs_ialloc_check_shrink(*tpp, pag->pag_agno, agibp, in xfs_ag_shrink_space()
952 ASSERT(pag->pag_agno == pag->pag_mount->m_sb.sb_agcount - 1); in xfs_ag_extend_space()
985 error = xfs_free_extent(tp, XFS_AGB_TO_FSB(pag->pag_mount, pag->pag_agno, in xfs_ag_extend_space()
1022 ageo->ag_number = pag->pag_agno; in xfs_ag_get_geometry()
Dxfs_rmap_btree.c98 trace_xfs_rmapbt_alloc_block(cur->bc_mp, pag->pag_agno, bno, 1); in xfs_rmapbt_alloc_block()
110 xfs_ag_resv_rmapbt_alloc(cur->bc_mp, pag->pag_agno); in xfs_rmapbt_alloc_block()
128 trace_xfs_rmapbt_free_block(cur->bc_mp, pag->pag_agno, in xfs_rmapbt_free_block()
217 ASSERT(cur->bc_ag.pag->pag_agno == be32_to_cpu(agf->agf_seqno)); in xfs_rmapbt_init_ptr_from_cur()
669 if (xfs_ag_contains_log(mp, pag->pag_agno)) in xfs_rmapbt_calc_reserves()
Dxfs_ialloc_btree.c107 args.fsbno = XFS_AGB_TO_FSB(args.mp, cur->bc_ag.pag->pag_agno, sbno); in __xfs_inobt_alloc_block()
240 ASSERT(cur->bc_ag.pag->pag_agno == be32_to_cpu(agi->agi_seqno)); in xfs_inobt_init_ptr_from_cur()
252 ASSERT(cur->bc_ag.pag->pag_agno == be32_to_cpu(agi->agi_seqno)); in xfs_finobt_init_ptr_from_cur()
700 if (xfs_ag_contains_log(mp, pag->pag_agno)) in xfs_inobt_max_size()
Dxfs_alloc.c275 pag->pag_agno); in xfs_alloc_get_rec()
629 if (bp->b_pag && be32_to_cpu(agfl->agfl_seqno) != bp->b_pag->pag_agno) in xfs_agfl_verify()
715 XFS_AG_DADDR(mp, pag->pag_agno, XFS_AGFL_DADDR(mp)), in xfs_alloc_read_agfl()
2444 pag->pag_agno, pag->pagf_flcount); in xfs_agfl_reset()
2978 if (bp->b_pag && be32_to_cpu(agf->agf_seqno) != bp->b_pag->pag_agno) in xfs_agf_verify()
3061 trace_xfs_read_agf(pag->pag_mount, pag->pag_agno); in xfs_read_agf()
3064 XFS_AG_DADDR(mp, pag->pag_agno, XFS_AGF_DADDR(mp)), in xfs_read_agf()
3090 trace_xfs_alloc_read_agf(pag->pag_mount, pag->pag_agno); in xfs_alloc_read_agf()
3358 args.agno = pag->pag_agno; in xfs_free_extent_fix_freelist()
Dxfs_sb.c1039 XFS_AG_DADDR(mp, pag->pag_agno, XFS_SB_DADDR), in xfs_update_secondary_sbs()
1051 pag->pag_agno); in xfs_update_secondary_sbs()
1072 error, pag->pag_agno); in xfs_update_secondary_sbs()
Dxfs_alloc_btree.c227 ASSERT(cur->bc_ag.pag->pag_agno == be32_to_cpu(agf->agf_seqno)); in xfs_allocbt_init_ptr_from_cur()
Dxfs_btree.c317 cur->bc_ag.pag->pag_agno, cur->bc_btnum, in xfs_btree_check_ptr()
966 xfs_btree_reada_bufs(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_btree_readahead_sblock()
972 xfs_btree_reada_bufs(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_btree_readahead_sblock()
1030 *daddr = XFS_AGB_TO_DADDR(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_btree_ptr_to_daddr()
1231 owner = cur->bc_ag.pag->pag_agno; in xfs_btree_init_block_cur()
4577 if (pag && be32_to_cpu(block->bb_u.s.bb_owner) != pag->pag_agno) in xfs_btree_sblock_v5hdr_verify()
/linux-6.1.9/fs/xfs/ !
Dxfs_iwalk.c114 xfs_btree_reada_bufs(mp, pag->pag_agno, agbno, in xfs_iwalk_ichunk_ra()
194 trace_xfs_iwalk_ag_rec(mp, pag->pag_agno, irec); in xfs_iwalk_ag_recs()
200 error = iwag->inobt_walk_fn(mp, tp, pag->pag_agno, irec, in xfs_iwalk_ag_recs()
218 ino = XFS_AGINO_TO_INO(mp, pag->pag_agno, in xfs_iwalk_ag_recs()
312 iwag->lastino = XFS_AGINO_TO_INO(mp, pag->pag_agno, in xfs_iwalk_ag_start()
415 ASSERT(pag->pag_agno == XFS_INO_TO_AGNO(mp, iwag->startino)); in xfs_iwalk_ag()
434 rec_fsino = XFS_AGINO_TO_INO(mp, pag->pag_agno, irec->ir_startino); in xfs_iwalk_ag()
681 startino = XFS_AGINO_TO_INO(mp, pag->pag_agno + 1, 0); in xfs_iwalk_threaded()
772 iwag.startino = XFS_AGINO_TO_INO(mp, pag->pag_agno + 1, 0); in xfs_inobt_walk()
Dxfs_extent_busy.c36 new->agno = pag->pag_agno; in xfs_extent_busy_insert()
43 trace_xfs_extent_busy(tp->t_mountp, pag->pag_agno, bno, len); in xfs_extent_busy_insert()
258 trace_xfs_extent_busy_reuse(mp, pag->pag_agno, fbno, flen); in xfs_extent_busy_update_extent()
264 trace_xfs_extent_busy_force(mp, pag->pag_agno, fbno, flen); in xfs_extent_busy_update_extent()
Dxfs_fsmap.c315 info->pag ? info->pag->pag_agno : NULLAGNUMBER, rec); in xfs_getfsmap_helper()
358 fsb = XFS_AGB_TO_FSB(mp, cur->bc_ag.pag->pag_agno, rec->rm_startblock); in xfs_getfsmap_datadev_helper()
376 rec_daddr = XFS_AGB_TO_DADDR(mp, cur->bc_ag.pag->pag_agno, in xfs_getfsmap_datadev_bnobt_helper()
627 if (pag->pag_agno == end_ag) { in __xfs_getfsmap_datadev()
649 trace_xfs_fsmap_low_key(mp, info->dev, pag->pag_agno, in __xfs_getfsmap_datadev()
651 trace_xfs_fsmap_high_key(mp, info->dev, pag->pag_agno, in __xfs_getfsmap_datadev()
662 if (pag->pag_agno == start_ag) { in __xfs_getfsmap_datadev()
674 if (pag->pag_agno == end_ag) { in __xfs_getfsmap_datadev()
Dxfs_health.c183 trace_xfs_ag_mark_sick(pag->pag_mount, pag->pag_agno, mask); in xfs_ag_mark_sick()
198 trace_xfs_ag_mark_healthy(pag->pag_mount, pag->pag_agno, mask); in xfs_ag_mark_healthy()
Dxfs_icache.c245 radix_tree_tag_set(&mp->m_perag_tree, pag->pag_agno, tag); in xfs_perag_set_inode_tag()
258 trace_xfs_perag_set_inode_tag(mp, pag->pag_agno, tag, _RET_IP_); in xfs_perag_set_inode_tag()
289 radix_tree_tag_clear(&mp->m_perag_tree, pag->pag_agno, tag); in xfs_perag_clear_inode_tag()
292 trace_xfs_perag_clear_inode_tag(mp, pag->pag_agno, tag, _RET_IP_); in xfs_perag_clear_inode_tag()
1025 ag = pag->pag_agno + 1; in xfs_reclaim_inodes_count()
1461 pag->pag_agno, error); in xfs_blockgc_worker()
1698 if (XFS_INO_TO_AGNO(mp, ip->i_ino) != pag->pag_agno) in xfs_icwalk_ag()
Dxfs_iunlink_item.c83 trace_xfs_iunlink_update_dinode(mp, iup->pag->pag_agno, in xfs_iunlink_log_dinode()
Dxfs_log_recover.c2672 pag->pag_agno); in xlog_recover_clear_agi_bucket()
2691 XFS_AGINO_TO_INO(mp, pag->pag_agno, agino), in xlog_recover_iunlink_bucket()
Dxfs_trace.h2848 __entry->agno = pag->pag_agno;
3900 __entry->agno = cur->bc_ag.pag->pag_agno;
4015 __entry->agno = cur->bc_ag.pag->pag_agno;
/linux-6.1.9/fs/xfs/scrub/ !
Drepair.c307 *fsbno = XFS_AGB_TO_FSB(sc->mp, sc->sa.pag->pag_agno, bno); in xrep_alloc_ag_block()
309 xfs_ag_resv_rmapbt_alloc(sc->mp, sc->sa.pag->pag_agno); in xrep_alloc_ag_block()
318 args.fsbno = XFS_AGB_TO_FSB(args.mp, sc->sa.pag->pag_agno, 0); in xrep_alloc_ag_block()
353 ASSERT(XFS_FSB_TO_AGNO(mp, fsb) == sc->sa.pag->pag_agno); in xrep_init_btblock()
360 xfs_btree_init_block(mp, bp, btnum, 0, 0, sc->sa.pag->pag_agno); in xrep_init_btblock()
485 args.agno = sc->sa.pag->pag_agno; in xrep_fix_freelist()
544 ASSERT(XFS_FSB_TO_AGNO(sc->mp, fsbno) == sc->sa.pag->pag_agno); in xrep_reap_block()
618 XFS_FSB_TO_AGNO(sc->mp, fsbno) == sc->sa.pag->pag_agno); in xrep_reap_extents()
693 daddr = XFS_AGB_TO_DADDR(mp, ri->sc->sa.pag->pag_agno, agbno); in xrep_findroot_block()
822 trace_xrep_findroot_block(mp, ri->sc->sa.pag->pag_agno, agbno, in xrep_findroot_block()
Dagheader_repair.c200 agf->agf_seqno = cpu_to_be32(sc->sa.pag->pag_agno); in xrep_agf_init_header()
387 XFS_AG_DADDR(mp, sc->sa.pag->pag_agno, in xrep_agf()
470 fsb = XFS_AGB_TO_FSB(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xrep_agfl_walk_rmap()
602 agfl->agfl_seqno = cpu_to_be32(sc->sa.pag->pag_agno); in xrep_agfl_init_header()
615 trace_xrep_agfl_insert(mp, sc->sa.pag->pag_agno, agbno, in xrep_agfl_init_header()
674 XFS_AG_DADDR(mp, sc->sa.pag->pag_agno, in xrep_agfl()
778 agi->agi_seqno = cpu_to_be32(sc->sa.pag->pag_agno); in xrep_agi_init_header()
919 XFS_AG_DADDR(mp, sc->sa.pag->pag_agno, in xrep_agi()
Dialloc.c166 fsino = XFS_AGINO_TO_INO(mp, bs->cur->bc_ag.pag->pag_agno, agino); in xchk_iallocbt_check_cluster_ifree()
216 xfs_agnumber_t agno = bs->cur->bc_ag.pag->pag_agno; in xchk_iallocbt_check_cluster()
Dbmap.c505 cur->bc_ag.pag->pag_agno, in xchk_bmap_check_rmap()

12