Home
last modified time | relevance | path

Searched refs:agno (Results 1 – 25 of 31) sorted by relevance

12

/linux/fs/xfs/libxfs/
H A Dxfs_ag.h139 int xfs_initialize_perag_data(struct xfs_mount *mp, xfs_agnumber_t agno);
146 xfs_agnumber_t agno) in xfs_perag_get() argument
148 return to_perag(xfs_group_get(mp, agno, XG_TYPE_AG)); in xfs_perag_get()
169 xfs_agnumber_t agno) in xfs_perag_grab() argument
171 return to_perag(xfs_group_grab(mp, agno, XG_TYPE_AG)); in xfs_perag_grab()
212 xfs_agblock_t xfs_ag_block_count(struct xfs_mount *mp, xfs_agnumber_t agno);
213 void xfs_agino_range(struct xfs_mount *mp, xfs_agnumber_t agno,
258 xfs_ag_contains_log(struct xfs_mount *mp, xfs_agnumber_t agno) in xfs_ag_contains_log() argument
261 agno == XFS_FSB_TO_AGNO(mp, mp->m_sb.sb_logstart); in xfs_ag_contains_log()
267 xfs_agnumber_t *agno, in xfs_perag_next_wrap() argument
[all …]
H A Dxfs_sb.h35 struct xfs_trans *tp, xfs_agnumber_t agno,
38 struct xfs_trans *tp, xfs_agnumber_t agno,
H A Dxfs_alloc.c2958 targs.agno = args->agno; in xfs_alloc_fix_freelist()
3539 if (args->agno != NULLAGNUMBER && *minimum_agno > args->agno) { in xfs_alloc_vextent_check_args()
3563 args->pag = xfs_perag_get(args->mp, args->agno); in xfs_alloc_vextent_prepare_ag()
3619 args->agno > minimum_agno)) in xfs_alloc_vextent_finish()
3620 args->tp->t_highest_agno = args->agno; in xfs_alloc_vextent_finish()
3684 xfs_agnumber_t agno) in xfs_alloc_vextent_this_ag() argument
3691 ASSERT(pag_agno(args->pag) == agno); in xfs_alloc_vextent_this_ag()
3693 args->agno = agno; in xfs_alloc_vextent_this_ag()
3741 xfs_agnumber_t agno; in xfs_alloc_vextent_iterate_ags() local
3748 mp->m_sb.sb_agcount, agno, args->pag) { in xfs_alloc_vextent_iterate_ags()
[all …]
H A Dxfs_alloc.h40 xfs_agnumber_t agno; /* allocation group number */ member
105 int xfs_alloc_vextent_this_ag(struct xfs_alloc_arg *args, xfs_agnumber_t agno);
H A Dxfs_sb.c1619 xfs_agnumber_t agno, in xfs_sb_read_secondary() argument
1625 ASSERT(agno != 0 && agno != NULLAGNUMBER); in xfs_sb_read_secondary()
1627 XFS_AG_DADDR(mp, agno, XFS_SB_BLOCK(mp)), in xfs_sb_read_secondary()
1630 xfs_agno_mark_sick(mp, agno, XFS_SICK_AG_SB); in xfs_sb_read_secondary()
1643 xfs_agnumber_t agno, in xfs_sb_get_secondary() argument
1649 ASSERT(agno != 0 && agno != NULLAGNUMBER); in xfs_sb_get_secondary()
1651 XFS_AG_DADDR(mp, agno, XFS_SB_BLOCK(mp)), in xfs_sb_get_secondary()
H A Dxfs_rmap_btree.h70 struct xfs_buftarg *btp, xfs_agnumber_t agno);
H A Dxfs_format.h702 #define XFS_AGB_TO_FSB(mp,agno,agbno) \ argument
703 (((xfs_fsblock_t)(agno) << (mp)->m_sb.sb_agblklog) | (agbno))
708 #define XFS_AGB_TO_DADDR(mp,agno,agbno) \ argument
710 (xfs_fsblock_t)(agno) * (mp)->m_sb.sb_agblocks + (agbno)))
711 #define XFS_AG_DADDR(mp,agno,d) (XFS_AGB_TO_DADDR(mp, agno, 0) + (d)) argument
H A Dxfs_ialloc.h92 xfs_agnumber_t agno, xfs_agblock_t agbno,
/linux/fs/ext4/
H A Dfsmap.c92 ext4_group_t agno; in ext4_getfsmap_helper() local
139 &agno, &cno); in ext4_getfsmap_helper()
140 trace_ext4_fsmap_mapping(sb, info->gfi_dev, agno, in ext4_getfsmap_helper()
163 ext4_get_group_no_and_offset(sb, rec_fsblk, &agno, &cno); in ext4_getfsmap_helper()
164 trace_ext4_fsmap_mapping(sb, info->gfi_dev, agno, EXT4_C2B(sbi, cno), in ext4_getfsmap_helper()
190 ext4_group_t agno, ext4_grpblk_t start, in ext4_getfsmap_meta_helper() argument
201 ext4_group_first_block_no(sb, agno)); in ext4_getfsmap_meta_helper()
244 ext4_group_t agno, ext4_grpblk_t start, in ext4_getfsmap_datadev_helper() argument
256 fsb = (EXT4_C2B(sbi, start) + ext4_group_first_block_no(sb, agno)); in ext4_getfsmap_datadev_helper()
300 ext4_group_first_block_no(sb, agno + 1)) { in ext4_getfsmap_datadev_helper()
[all …]
H A Dmballoc.h258 ext4_group_t agno,
266 ext4_group_t agno,
/linux/fs/xfs/scrub/
H A Dtrace.h157 __field(xfs_agnumber_t, agno)
167 __entry->agno = sm->sm_agno;
177 __entry->agno,
230 __field(xfs_agnumber_t, agno)
240 __entry->agno = vhead->svh_agno;
250 __entry->agno,
300 TP_PROTO(struct xfs_scrub *sc, xfs_agnumber_t agno,
302 TP_ARGS(sc, agno, bno, error, ret_ip),
306 __field(xfs_agnumber_t, agno)
314 __entry->agno = agno;
[all …]
H A Dagheader.c42 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_superblock_xref() local
51 error = xchk_ag_init_existing(sc, agno, &sc->sa); in xchk_superblock_xref()
52 if (!xchk_xref_process_error(sc, agno, agbno, &error)) in xchk_superblock_xref()
109 xfs_agnumber_t agno; in xchk_superblock() local
115 agno = sc->sm->sm_agno; in xchk_superblock()
116 if (agno == 0) in xchk_superblock()
124 pag = xfs_perag_get(mp, agno); in xchk_superblock()
128 error = xfs_sb_read_secondary(mp, sc->tp, agno, &bp); in xchk_superblock()
146 if (!xchk_process_error(sc, agno, XFS_SB_BLOCK(mp), &error)) in xchk_superblock()
611 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_agf() local
[all …]
H A Dnewbt.c254 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(sc->mp, xnr->alloc_hint); in xrep_newbt_validate_ag_alloc_hint() local
256 if (agno == pag_agno(sc->sa.pag) && in xrep_newbt_validate_ag_alloc_hint()
287 xfs_agnumber_t agno; in xrep_newbt_alloc_ag_blocks() local
301 agno = XFS_FSB_TO_AGNO(mp, args.fsbno); in xrep_newbt_alloc_ag_blocks()
302 if (agno != pag_agno(sc->sa.pag)) { in xrep_newbt_alloc_ag_blocks()
303 ASSERT(agno == pag_agno(sc->sa.pag)); in xrep_newbt_alloc_ag_blocks()
362 xfs_agnumber_t agno; in xrep_newbt_alloc_file_blocks() local
376 agno = XFS_FSB_TO_AGNO(mp, args.fsbno); in xrep_newbt_alloc_file_blocks()
378 pag = xfs_perag_get(mp, agno); in xrep_newbt_alloc_file_blocks()
H A Dcommon.h13 bool xchk_process_error(struct xfs_scrub *sc, xfs_agnumber_t agno,
21 xfs_agnumber_t agno, xfs_agblock_t bno, int *error);
113 int xchk_ag_init(struct xfs_scrub *sc, xfs_agnumber_t agno,
125 xfs_agnumber_t agno, in xchk_ag_init_existing() argument
128 int error = xchk_ag_init(sc, agno, sa); in xchk_ag_init_existing()
168 int xchk_ag_read_headers(struct xfs_scrub *sc, xfs_agnumber_t agno,
H A Drtrefcount.c512 xfs_agnumber_t agno, in xchk_rtrefcount_count_agblocks() argument
519 error = xchk_ag_init_existing(sc, agno, &sc->sa); in xchk_rtrefcount_count_agblocks()
553 xfs_agnumber_t agno; in xchk_rtrefcount_xref_rmap() local
564 for (agno = 0; agno < sc->mp->m_sb.sb_agcount; agno++) { in xchk_rtrefcount_xref_rmap()
565 error = xchk_rtrefcount_count_agblocks(sc, agno, btree_oinfo, in xchk_rtrefcount_xref_rmap()
H A Dinode.c98 xfs_agnumber_t agno = XFS_INO_TO_AGNO(mp, sc->sm->sm_ino); in xchk_setup_inode() local
221 trace_xchk_op_error(sc, agno, XFS_INO_TO_AGBNO(mp, sc->sm->sm_ino), in xchk_setup_inode()
733 xfs_agnumber_t agno; in xchk_inode_xref() local
740 agno = XFS_INO_TO_AGNO(sc->mp, ino); in xchk_inode_xref()
743 error = xchk_ag_init_existing(sc, agno, &sc->sa); in xchk_inode_xref()
744 if (!xchk_xref_process_error(sc, agno, agbno, &error)) in xchk_inode_xref()
H A Dfscounters.c263 xfs_agnumber_t agno) in xchk_fscount_btreeblks() argument
268 error = xchk_ag_init_existing(sc, agno, &sc->sa); in xchk_fscount_btreeblks()
H A Dcow_repair.c265 xfs_agnumber_t agno; in xrep_cow_find_bad() local
268 agno = XFS_FSB_TO_AGNO(sc->mp, xc->irec.br_startblock); in xrep_cow_find_bad()
271 pag = xfs_perag_get(sc->mp, agno); in xrep_cow_find_bad()
H A Dreap.c794 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(sc->mp, fsbno); in xreap_fsmeta_extent() local
807 sc->sa.pag = xfs_perag_get(sc->mp, agno); in xreap_fsmeta_extent()
1598 xfs_agnumber_t agno; in xreap_ifork_extent() local
1606 agno = XFS_FSB_TO_AGNO(sc->mp, imap->br_startblock); in xreap_ifork_extent()
1607 sc->sa.pag = xfs_perag_get(sc->mp, agno); in xreap_ifork_extent()
H A Dbtree.c373 xfs_agnumber_t agno; in xchk_btree_check_block_owner() local
384 agno = xfs_daddr_to_agno(bs->cur->bc_mp, daddr); in xchk_btree_check_block_owner()
394 error = xchk_ag_init_existing(bs->sc, agno, &bs->sc->sa); in xchk_btree_check_block_owner()
H A Dbmap.c390 xfs_agnumber_t agno; in xchk_bmap_iextent_xref() local
395 agno = XFS_FSB_TO_AGNO(mp, irec->br_startblock); in xchk_bmap_iextent_xref()
399 error = xchk_ag_init_existing(info->sc, agno, &info->sc->sa); in xchk_bmap_iextent_xref()
/linux/fs/xfs/
H A Dxfs_trace.h292 __field(xfs_agnumber_t, agno)
299 __entry->agno = pag_agno(pag);
307 __entry->agno,
330 __field(xfs_agnumber_t, agno)
338 __entry->agno = xg->xg_gno;
346 __entry->agno,
596 __field(xfs_agnumber_t, agno)
600 __entry->agno = pag_agno(pag);
604 __entry->agno)
964 __field(xfs_agnumber_t, agno)
[all …]
H A Dxfs_icreate_item.h17 void xfs_icreate_log(struct xfs_trans *tp, xfs_agnumber_t agno,
H A Dxfs_ioctl.c219 if (hdr->agno >= mp->m_sb.sb_agcount) in xfs_bulk_ireq_setup()
223 breq->startino = XFS_AGINO_TO_INO(mp, hdr->agno, 0); in xfs_bulk_ireq_setup()
224 else if (XFS_INO_TO_AGNO(mp, breq->startino) < hdr->agno) in xfs_bulk_ireq_setup()
230 if (XFS_INO_TO_AGNO(mp, breq->startino) > hdr->agno) in xfs_bulk_ireq_setup()
232 } else if (hdr->agno) in xfs_bulk_ireq_setup()
H A Dxfs_health.c190 xfs_agnumber_t agno, in xfs_agno_mark_sick() argument
193 struct xfs_perag *pag = xfs_perag_get(mp, agno); in xfs_agno_mark_sick()

12