Home
last modified time | relevance | path

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

123

/Linux-v6.6/fs/xfs/libxfs/
Dxfs_ag.h138 int xfs_initialize_perag_data(struct xfs_mount *mp, xfs_agnumber_t agno);
142 struct xfs_perag *xfs_perag_get(struct xfs_mount *mp, xfs_agnumber_t agno);
143 struct xfs_perag *xfs_perag_get_tag(struct xfs_mount *mp, xfs_agnumber_t agno,
157 xfs_agblock_t xfs_ag_block_count(struct xfs_mount *mp, xfs_agnumber_t agno);
158 void xfs_agino_range(struct xfs_mount *mp, xfs_agnumber_t agno,
213 xfs_ag_contains_log(struct xfs_mount *mp, xfs_agnumber_t agno) in xfs_ag_contains_log() argument
216 agno == XFS_FSB_TO_AGNO(mp, mp->m_sb.sb_logstart); in xfs_ag_contains_log()
225 xfs_agnumber_t *agno, in xfs_perag_next() argument
230 *agno = pag->pag_agno + 1; in xfs_perag_next()
232 while (*agno <= end_agno) { in xfs_perag_next()
[all …]
Dxfs_types.c24 xfs_agnumber_t agno, in xfs_verify_agno_agbno() argument
29 eoag = xfs_ag_block_count(mp, agno); in xfs_verify_agno_agbno()
46 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, fsbno); in xfs_verify_fsbno() local
48 if (agno >= mp->m_sb.sb_agcount) in xfs_verify_fsbno()
50 return xfs_verify_agno_agbno(mp, agno, XFS_FSB_TO_AGBNO(mp, fsbno)); in xfs_verify_fsbno()
83 xfs_agnumber_t agno, in xfs_verify_agno_agino() argument
89 xfs_agino_range(mp, agno, &first, &last); in xfs_verify_agno_agino()
102 xfs_agnumber_t agno = XFS_INO_TO_AGNO(mp, ino); in xfs_verify_ino() local
105 if (agno >= mp->m_sb.sb_agcount) in xfs_verify_ino()
107 if (XFS_AGINO_TO_INO(mp, agno, agino) != ino) in xfs_verify_ino()
[all …]
Dxfs_ag.c44 xfs_agnumber_t agno) in xfs_perag_get() argument
49 pag = radix_tree_lookup(&mp->m_perag_tree, agno); in xfs_perag_get()
115 xfs_agnumber_t agno) in xfs_perag_grab() argument
120 pag = radix_tree_lookup(&mp->m_perag_tree, agno); in xfs_perag_grab()
255 xfs_agnumber_t agno; in xfs_free_perag() local
257 for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { in xfs_free_perag()
259 pag = radix_tree_delete(&mp->m_perag_tree, agno); in xfs_free_perag()
280 xfs_agnumber_t agno, in __xfs_ag_block_count() argument
284 ASSERT(agno < agcount); in __xfs_ag_block_count()
286 if (agno < agcount - 1) in __xfs_ag_block_count()
[all …]
Dxfs_alloc.c1128 XFS_AGB_TO_DADDR(args->mp, args->agno, fbno), in xfs_alloc_ag_vextent_small()
1896 xfs_agnumber_t agno, in xfs_free_ag_extent() argument
2191 trace_xfs_free_extent(mp, agno, bno, len, type, haveleft, haveright); in xfs_free_ag_extent()
2196 trace_xfs_free_extent(mp, agno, bno, len, type, -1, -1); in xfs_free_ag_extent()
2348 xfs_agnumber_t agno, in xfs_free_agfl_block() argument
2356 error = xfs_free_ag_extent(tp, agbp, agno, agbno, 1, oinfo, in xfs_free_agfl_block()
2362 XFS_AGB_TO_DADDR(tp->t_mountp, agno, agbno), in xfs_free_agfl_block()
2472 xfs_agnumber_t agno, in xfs_defer_agfl_block() argument
2478 xfs_fsblock_t fsbno = XFS_AGB_TO_FSB(mp, agno, agbno); in xfs_defer_agfl_block()
2493 trace_xfs_agfl_free_defer(mp, agno, 0, agbno, 1); in xfs_defer_agfl_block()
[all …]
Dxfs_ag_resv.h44 xfs_agnumber_t agno) in xfs_ag_resv_rmapbt_alloc() argument
50 pag = xfs_perag_get(mp, agno); in xfs_ag_resv_rmapbt_alloc()
Dxfs_sb.h32 struct xfs_trans *tp, xfs_agnumber_t agno,
35 struct xfs_trans *tp, xfs_agnumber_t agno,
/Linux-v6.6/fs/xfs/scrub/
Dtrace.h119 __field(xfs_agnumber_t, agno)
129 __entry->agno = sm->sm_agno;
139 __entry->agno,
185 TP_PROTO(struct xfs_scrub *sc, xfs_agnumber_t agno,
187 TP_ARGS(sc, agno, bno, error, ret_ip),
191 __field(xfs_agnumber_t, agno)
199 __entry->agno = agno;
207 __entry->agno,
251 __field(xfs_agnumber_t, agno)
258 __entry->agno = xfs_daddr_to_agno(sc->mp, daddr);
[all …]
Dcommon.h37 bool xchk_process_error(struct xfs_scrub *sc, xfs_agnumber_t agno,
43 xfs_agnumber_t agno, xfs_agblock_t bno, int *error);
117 int xchk_ag_init(struct xfs_scrub *sc, xfs_agnumber_t agno,
128 xfs_agnumber_t agno, in xchk_ag_init_existing() argument
131 int error = xchk_ag_init(sc, agno, sa); in xchk_ag_init_existing()
136 int xchk_ag_read_headers(struct xfs_scrub *sc, xfs_agnumber_t agno,
Dagheader.c39 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_superblock_xref() local
48 error = xchk_ag_init_existing(sc, agno, &sc->sa); in xchk_superblock_xref()
49 if (!xchk_xref_process_error(sc, agno, agbno, &error)) in xchk_superblock_xref()
77 xfs_agnumber_t agno; in xchk_superblock() local
83 agno = sc->sm->sm_agno; in xchk_superblock()
84 if (agno == 0) in xchk_superblock()
92 pag = xfs_perag_get(mp, agno); in xchk_superblock()
96 error = xfs_sb_read_secondary(mp, sc->tp, agno, &bp); in xchk_superblock()
114 if (!xchk_process_error(sc, agno, XFS_SB_BLOCK(mp), &error)) in xchk_superblock()
535 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_agf() local
[all …]
Dfscounters.c87 xfs_agnumber_t agno; in xchk_fscount_warmup() local
90 for_each_perag(mp, agno, pag) { in xchk_fscount_warmup()
265 xfs_agnumber_t agno) in xchk_fscount_btreeblks() argument
270 error = xchk_ag_init_existing(sc, agno, &sc->sa); in xchk_fscount_btreeblks()
303 xfs_agnumber_t agno; in xchk_fscount_aggregate_agcounts() local
312 for_each_perag(mp, agno, pag) { in xchk_fscount_aggregate_agcounts()
333 error = xchk_fscount_btreeblks(sc, fsc, agno); in xchk_fscount_aggregate_agcounts()
Dcommon.c68 xfs_agnumber_t agno, in __xchk_process_error() argument
91 trace_xchk_op_error(sc, agno, bno, *error, in __xchk_process_error()
101 xfs_agnumber_t agno, in xchk_process_error() argument
105 return __xchk_process_error(sc, agno, bno, error, in xchk_process_error()
112 xfs_agnumber_t agno, in xchk_xref_process_error() argument
116 return __xchk_process_error(sc, agno, bno, error, in xchk_xref_process_error()
510 xfs_agnumber_t agno, in xchk_ag_read_headers() argument
516 sa->pag = xfs_perag_get(mp, agno); in xchk_ag_read_headers()
631 xfs_agnumber_t agno, in xchk_ag_init() argument
636 error = xchk_ag_read_headers(sc, agno, sa); in xchk_ag_init()
[all …]
/Linux-v6.6/fs/xfs/
Dxfs_trace.h170 __field(xfs_agnumber_t, agno)
177 __entry->agno = pag->pag_agno;
184 __entry->agno,
284 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno),
285 TP_ARGS(mp, agno),
288 __field(xfs_agnumber_t, agno)
292 __entry->agno = agno;
296 __entry->agno)
300 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno), \
301 TP_ARGS(mp, agno))
[all …]
Dxfs_extent_busy.c36 new->agno = pag->pag_agno; in xfs_extent_busy_insert_list()
502 trace_xfs_extent_busy_trim(args->mp, args->agno, *bno, *len, in xfs_extent_busy_trim()
527 trace_xfs_extent_busy_clear(mp, busyp->agno, busyp->bno, in xfs_extent_busy_clear_one()
564 xfs_agnumber_t agno = NULLAGNUMBER; in xfs_extent_busy_clear() local
568 if (busyp->agno != agno) { in xfs_extent_busy_clear()
571 agno = busyp->agno; in xfs_extent_busy_clear()
572 pag = xfs_perag_get(mp, agno); in xfs_extent_busy_clear()
648 xfs_agnumber_t agno; in xfs_extent_busy_wait_all() local
650 for_each_perag(mp, agno, pag) { in xfs_extent_busy_wait_all()
676 diff = b1->agno - b2->agno; in xfs_extent_busy_ag_cmp()
Dxfs_icreate_item.c92 xfs_agnumber_t agno, in xfs_icreate_log() argument
108 icp->ic_format.icl_ag = cpu_to_be32(agno); in xfs_icreate_log()
151 xfs_agnumber_t agno; in xlog_recover_icreate_commit_pass2() local
172 agno = be32_to_cpu(icl->icl_ag); in xlog_recover_icreate_commit_pass2()
173 if (agno >= mp->m_sb.sb_agcount) { in xlog_recover_icreate_commit_pass2()
228 daddr = XFS_AGB_TO_DADDR(mp, agno, in xlog_recover_icreate_commit_pass2()
254 return xfs_ialloc_inode_init(mp, NULL, buffer_list, count, agno, agbno, in xlog_recover_icreate_commit_pass2()
Dxfs_drain.h65 xfs_agnumber_t agno);
79 #define xfs_perag_intent_get(mp, agno) xfs_perag_get((mp), (agno)) argument
Dxfs_notify_failure.c116 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, fsbno); in xfs_dax_notify_ddev_failure() local
125 for (; agno <= end_agno; agno++) { in xfs_dax_notify_ddev_failure()
132 pag = xfs_perag_get(mp, agno); in xfs_dax_notify_ddev_failure()
147 if (agno == end_agno) in xfs_dax_notify_ddev_failure()
164 fsbno = XFS_AGB_TO_FSB(mp, agno + 1, 0); in xfs_dax_notify_ddev_failure()
Dxfs_fsops.c54 for (id->agno = nagcount - 1; in xfs_resizefs_init_new_ags()
55 id->agno >= oagcount; in xfs_resizefs_init_new_ags()
56 id->agno--, delta -= id->agsize) { in xfs_resizefs_init_new_ags()
58 if (id->agno == nagcount - 1) in xfs_resizefs_init_new_ags()
59 id->agsize = nb - (id->agno * in xfs_resizefs_init_new_ags()
211 pag = xfs_perag_get(mp, id.agno); in xfs_growfs_data_private()
572 xfs_agnumber_t agno; in xfs_fs_reserve_ag_blocks() local
578 for_each_perag(mp, agno, pag) { in xfs_fs_reserve_ag_blocks()
600 xfs_agnumber_t agno; in xfs_fs_unreserve_ag_blocks() local
605 for_each_perag(mp, agno, pag) { in xfs_fs_unreserve_ag_blocks()
Dxfs_filestream.c68 xfs_agnumber_t agno; in xfs_filestream_pick_ag() local
76 for_each_perag_wrap(mp, start_agno, agno, pag) { in xfs_filestream_pick_ag()
271 xfs_agnumber_t agno = XFS_INO_TO_AGNO(mp, pino); in xfs_filestream_create_association() local
281 agno = (item->pag->pag_agno + 1) % mp->m_sb.sb_agcount; in xfs_filestream_create_association()
286 agno = (mp->m_agfrotor / rotorstep) % mp->m_sb.sb_agcount; in xfs_filestream_create_association()
291 ap->blkno = XFS_AGB_TO_FSB(args->mp, agno, 0); in xfs_filestream_create_association()
300 error = xfs_filestream_pick_ag(args, pino, agno, flags, longest); in xfs_filestream_create_association()
Dxfs_iwalk.c572 xfs_agnumber_t agno = XFS_INO_TO_AGNO(mp, startino); in xfs_iwalk() local
575 ASSERT(agno < mp->m_sb.sb_agcount); in xfs_iwalk()
582 for_each_perag_from(mp, agno, pag) { in xfs_iwalk()
587 iwag.startino = XFS_AGINO_TO_INO(mp, agno + 1, 0); in xfs_iwalk()
650 xfs_agnumber_t agno = XFS_INO_TO_AGNO(mp, startino); in xfs_iwalk_threaded() local
653 ASSERT(agno < mp->m_sb.sb_agcount); in xfs_iwalk_threaded()
660 for_each_perag_from(mp, agno, pag) { in xfs_iwalk_threaded()
756 xfs_agnumber_t agno = XFS_INO_TO_AGNO(mp, startino); in xfs_inobt_walk() local
759 ASSERT(agno < mp->m_sb.sb_agcount); in xfs_inobt_walk()
766 for_each_perag_from(mp, agno, pag) { in xfs_inobt_walk()
Dxfs_discard.c117 trace_xfs_discard_extent(mp, busyp->agno, busyp->bno, in xfs_discard_extents()
121 XFS_AGB_TO_DADDR(mp, busyp->agno, busyp->bno), in xfs_discard_extents()
373 xfs_agnumber_t agno; in xfs_ioc_trim() local
412 agno = xfs_daddr_to_agno(mp, start); in xfs_ioc_trim()
413 for_each_perag_range(mp, agno, xfs_daddr_to_agno(mp, end), pag) { in xfs_ioc_trim()
Dxfs_itable.c263 xfs_agnumber_t agno = XFS_INO_TO_AGNO(mp, startino); in xfs_bulkstat_already_done() local
266 return agno >= mp->m_sb.sb_agcount || in xfs_bulkstat_already_done()
267 startino != XFS_AGINO_TO_INO(mp, agno, agino); in xfs_bulkstat_already_done()
390 xfs_agnumber_t agno, in xfs_inumbers_walk() argument
395 .xi_startino = XFS_AGINO_TO_INO(mp, agno, irec->ir_startino), in xfs_inumbers_walk()
407 ic->breq->startino = XFS_AGINO_TO_INO(mp, agno, irec->ir_startino) + in xfs_inumbers_walk()
/Linux-v6.6/fs/jfs/
Djfs_imap.c57 #define AG_LOCK(imap,agno) mutex_lock(&imap->im_aglock[agno]) argument
58 #define AG_UNLOCK(imap,agno) mutex_unlock(&imap->im_aglock[agno]) argument
848 int iagno, ino, extno, bitno, sword, agno; in diFree() local
882 agno = BLKTOAG(JFS_IP(ip)->agstart, JFS_SBI(ip->i_sb)); in diFree()
886 AG_LOCK(imap, agno); in diFree()
897 AG_UNLOCK(imap, agno); in diFree()
917 AG_UNLOCK(imap, agno); in diFree()
926 if (imap->im_agctl[agno].numfree > imap->im_agctl[agno].numinos) { in diFree()
929 AG_UNLOCK(imap, agno); in diFree()
938 imap->im_agctl[agno].numfree < 96 || in diFree()
[all …]
Djfs_discard.c70 int agno, agno_end; in jfs_ioc_trim() local
97 agno = BLKTOAG(start, JFS_SBI(ip->i_sb)); in jfs_ioc_trim()
99 while (agno <= agno_end) { in jfs_ioc_trim()
100 trimmed += dbDiscardAG(ip, agno, minlen); in jfs_ioc_trim()
101 agno++; in jfs_ioc_trim()
Djfs_dmap.c83 static int dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb,
720 int rc, agno; in dbAlloc() local
775 agno = blkno >> bmp->db_agl2size; in dbAlloc()
786 if (atomic_read(&bmp->db_active[agno])) in dbAlloc()
820 writers = atomic_read(&bmp->db_active[agno]); in dbAlloc()
822 ((writers == 1) && (JFS_IP(ip)->active_ag != agno))) { in dbAlloc()
865 if ((rc = dbAllocAG(bmp, agno, nblocks, l2nb, results)) != -ENOSPC) in dbAlloc()
875 agno = dbNextAG(ipbmap); in dbAlloc()
881 if ((rc = dbAllocAG(bmp, agno, nblocks, l2nb, results)) == -ENOSPC) in dbAlloc()
1316 dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb, s64 * results) in dbAllocAG() argument
[all …]
/Linux-v6.6/fs/ext4/
Dfsmap.c91 ext4_group_t agno; in ext4_getfsmap_helper() local
138 &agno, &cno); in ext4_getfsmap_helper()
139 trace_ext4_fsmap_mapping(sb, info->gfi_dev, agno, in ext4_getfsmap_helper()
162 ext4_get_group_no_and_offset(sb, rec_fsblk, &agno, &cno); in ext4_getfsmap_helper()
163 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_datadev_helper() argument
202 fsb = (EXT4_C2B(sbi, start) + ext4_group_first_block_no(sb, agno)); in ext4_getfsmap_datadev_helper()
246 ext4_group_first_block_no(sb, agno + 1)) { in ext4_getfsmap_datadev_helper()
315 ext4_group_t agno, in ext4_getfsmap_find_sb() argument
319 ext4_fsblk_t fsb = ext4_group_first_block_no(sb, agno); in ext4_getfsmap_find_sb()
[all …]

123