Home
last modified time | relevance | path

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

123

/Linux-v6.1/fs/xfs/libxfs/
Dxfs_ag.h111 int xfs_initialize_perag_data(struct xfs_mount *mp, xfs_agnumber_t agno);
114 struct xfs_perag *xfs_perag_get(struct xfs_mount *mp, xfs_agnumber_t agno);
115 struct xfs_perag *xfs_perag_get_tag(struct xfs_mount *mp, xfs_agnumber_t agno,
122 xfs_agblock_t xfs_ag_block_count(struct xfs_mount *mp, xfs_agnumber_t agno);
123 void xfs_agino_range(struct xfs_mount *mp, xfs_agnumber_t agno,
178 xfs_ag_contains_log(struct xfs_mount *mp, xfs_agnumber_t agno) in xfs_ag_contains_log() argument
181 agno == XFS_FSB_TO_AGNO(mp, mp->m_sb.sb_logstart); in xfs_ag_contains_log()
190 xfs_agnumber_t *agno, in xfs_perag_next() argument
195 *agno = pag->pag_agno + 1; in xfs_perag_next()
197 if (*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
50 pag = radix_tree_lookup(&mp->m_perag_tree, agno); in xfs_perag_get()
56 trace_xfs_perag_get(mp, agno, ref, _RET_IP_); in xfs_perag_get()
187 xfs_agnumber_t agno; in xfs_free_perag() local
189 for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { in xfs_free_perag()
191 pag = radix_tree_delete(&mp->m_perag_tree, agno); in xfs_free_perag()
207 xfs_agnumber_t agno, in __xfs_ag_block_count() argument
211 ASSERT(agno < agcount); in __xfs_ag_block_count()
213 if (agno < agcount - 1) in __xfs_ag_block_count()
215 return dblocks - (agno * mp->m_sb.sb_agblocks); in __xfs_ag_block_count()
[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,
Dxfs_alloc.c1088 XFS_AGB_TO_DADDR(args->mp, args->agno, fbno), in xfs_alloc_ag_vextent_small()
1894 xfs_agnumber_t agno, in xfs_free_ag_extent() argument
2189 trace_xfs_free_extent(mp, agno, bno, len, type, haveleft, haveright); in xfs_free_ag_extent()
2194 trace_xfs_free_extent(mp, agno, bno, len, type, -1, -1); in xfs_free_ag_extent()
2346 xfs_agnumber_t agno, in xfs_free_agfl_block() argument
2354 error = xfs_free_ag_extent(tp, agbp, agno, agbno, 1, oinfo, in xfs_free_agfl_block()
2360 XFS_AGB_TO_DADDR(tp->t_mountp, agno, agbno), in xfs_free_agfl_block()
2470 xfs_agnumber_t agno, in xfs_defer_agfl_block() argument
2482 new->xefi_startblock = XFS_AGB_TO_FSB(mp, agno, agbno); in xfs_defer_agfl_block()
2486 trace_xfs_agfl_free_defer(mp, agno, 0, agbno, 1); in xfs_defer_agfl_block()
[all …]
Dxfs_sb.c1029 xfs_agnumber_t agno = 1; in xfs_update_secondary_sbs() local
1035 for_each_perag_from(mp, agno, pag) { in xfs_update_secondary_sbs()
1065 if (agno % 16) in xfs_update_secondary_sbs()
1082 error, agno); in xfs_update_secondary_sbs()
1220 xfs_agnumber_t agno, in xfs_sb_read_secondary() argument
1226 ASSERT(agno != 0 && agno != NULLAGNUMBER); in xfs_sb_read_secondary()
1228 XFS_AG_DADDR(mp, agno, XFS_SB_BLOCK(mp)), in xfs_sb_read_secondary()
1242 xfs_agnumber_t agno, in xfs_sb_get_secondary() argument
1248 ASSERT(agno != 0 && agno != NULLAGNUMBER); in xfs_sb_get_secondary()
1250 XFS_AG_DADDR(mp, agno, XFS_SB_BLOCK(mp)), in xfs_sb_get_secondary()
/Linux-v6.1/fs/xfs/scrub/
Dtrace.h104 __field(xfs_agnumber_t, agno)
114 __entry->agno = sm->sm_agno;
124 __entry->agno,
143 TP_PROTO(struct xfs_scrub *sc, xfs_agnumber_t agno,
145 TP_ARGS(sc, agno, bno, error, ret_ip),
149 __field(xfs_agnumber_t, agno)
157 __entry->agno = agno;
165 __entry->agno,
209 __field(xfs_agnumber_t, agno)
216 __entry->agno = xfs_daddr_to_agno(sc->mp, daddr);
[all …]
Dcommon.h35 bool xchk_process_error(struct xfs_scrub *sc, xfs_agnumber_t agno,
41 xfs_agnumber_t agno, xfs_agblock_t bno, int *error);
108 int xchk_ag_init(struct xfs_scrub *sc, xfs_agnumber_t agno,
119 xfs_agnumber_t agno, in xchk_ag_init_existing() argument
122 int error = xchk_ag_init(sc, agno, sa); in xchk_ag_init_existing()
127 int xchk_ag_read_headers(struct xfs_scrub *sc, xfs_agnumber_t agno,
Dfscounters.c71 xfs_agnumber_t agno; in xchk_fscount_warmup() local
74 for_each_perag(mp, agno, pag) { in xchk_fscount_warmup()
146 xfs_agnumber_t agno) in xchk_fscount_btreeblks() argument
151 error = xchk_ag_init_existing(sc, agno, &sc->sa); in xchk_fscount_btreeblks()
184 xfs_agnumber_t agno; in xchk_fscount_aggregate_agcounts() local
193 for_each_perag(mp, agno, pag) { in xchk_fscount_aggregate_agcounts()
213 error = xchk_fscount_btreeblks(sc, fsc, agno); in xchk_fscount_aggregate_agcounts()
Dagheader.c30 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_superblock_xref() local
39 error = xchk_ag_init_existing(sc, agno, &sc->sa); in xchk_superblock_xref()
40 if (!xchk_xref_process_error(sc, agno, agbno, &error)) in xchk_superblock_xref()
67 xfs_agnumber_t agno; in xchk_superblock() local
73 agno = sc->sm->sm_agno; in xchk_superblock()
74 if (agno == 0) in xchk_superblock()
82 pag = xfs_perag_get(mp, agno); in xchk_superblock()
86 error = xfs_sb_read_secondary(mp, sc->tp, agno, &bp); in xchk_superblock()
104 if (!xchk_process_error(sc, agno, XFS_SB_BLOCK(mp), &error)) in xchk_superblock()
524 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_agf() local
[all …]
Dcommon.c68 xfs_agnumber_t agno, in __xchk_process_error() argument
90 trace_xchk_op_error(sc, agno, bno, *error, in __xchk_process_error()
100 xfs_agnumber_t agno, in xchk_process_error() argument
104 return __xchk_process_error(sc, agno, bno, error, in xchk_process_error()
111 xfs_agnumber_t agno, in xchk_xref_process_error() argument
115 return __xchk_process_error(sc, agno, bno, error, in xchk_xref_process_error()
408 xfs_agnumber_t agno, in xchk_ag_read_headers() argument
415 sa->pag = xfs_perag_get(mp, agno); in xchk_ag_read_headers()
546 xfs_agnumber_t agno, in xchk_ag_init() argument
551 error = xchk_ag_read_headers(sc, agno, sa); in xchk_ag_init()
/Linux-v6.1/fs/xfs/
Dxfs_trace.h162 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, int refcount,
164 TP_ARGS(mp, agno, refcount, caller_ip),
167 __field(xfs_agnumber_t, agno)
173 __entry->agno = agno;
179 __entry->agno,
186 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, int refcount, \
188 TP_ARGS(mp, agno, refcount, caller_ip))
275 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno),
276 TP_ARGS(mp, agno),
279 __field(xfs_agnumber_t, agno)
[all …]
Dxfs_discard.c25 xfs_agnumber_t agno, in xfs_trim_extents() argument
39 pag = xfs_perag_get(mp, agno); in xfs_trim_extents()
86 dbno = XFS_AGB_TO_DADDR(mp, agno, fbno); in xfs_trim_extents()
93 trace_xfs_discard_toosmall(mp, agno, fbno, flen); in xfs_trim_extents()
103 trace_xfs_discard_exclude(mp, agno, fbno, flen); in xfs_trim_extents()
112 trace_xfs_discard_busy(mp, agno, fbno, flen); in xfs_trim_extents()
116 trace_xfs_discard_extent(mp, agno, fbno, flen); in xfs_trim_extents()
159 xfs_agnumber_t start_agno, end_agno, agno; in xfs_ioc_trim() local
201 for (agno = start_agno; agno <= end_agno; agno++) { in xfs_ioc_trim()
202 error = xfs_trim_extents(mp, agno, start, end, minlen, in xfs_ioc_trim()
Dxfs_extent_busy.c36 new->agno = pag->pag_agno; in xfs_extent_busy_insert()
478 trace_xfs_extent_busy_trim(args->mp, args->agno, *bno, *len, in xfs_extent_busy_trim()
503 trace_xfs_extent_busy_clear(mp, busyp->agno, busyp->bno, in xfs_extent_busy_clear_one()
540 xfs_agnumber_t agno = NULLAGNUMBER; in xfs_extent_busy_clear() local
544 if (busyp->agno != agno) { in xfs_extent_busy_clear()
547 agno = busyp->agno; in xfs_extent_busy_clear()
548 pag = xfs_perag_get(mp, agno); in xfs_extent_busy_clear()
598 xfs_agnumber_t agno; in xfs_extent_busy_wait_all() local
600 for_each_perag(mp, agno, pag) { in xfs_extent_busy_wait_all()
626 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_notify_failure.c116 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, fsbno); in xfs_dax_notify_ddev_failure() local
124 for (; agno <= end_agno; agno++) { in xfs_dax_notify_ddev_failure()
131 pag = xfs_perag_get(mp, agno); in xfs_dax_notify_ddev_failure()
146 if (agno == end_agno) in xfs_dax_notify_ddev_failure()
163 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()
202 pag = xfs_perag_get(mp, id.agno); in xfs_growfs_data_private()
560 xfs_agnumber_t agno; in xfs_fs_reserve_ag_blocks() local
566 for_each_perag(mp, agno, pag) { in xfs_fs_reserve_ag_blocks()
588 xfs_agnumber_t agno; in xfs_fs_unreserve_ag_blocks() local
593 for_each_perag(mp, agno, pag) { in xfs_fs_unreserve_ag_blocks()
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()
757 xfs_agnumber_t agno = XFS_INO_TO_AGNO(mp, startino); in xfs_inobt_walk() local
760 ASSERT(agno < mp->m_sb.sb_agcount); in xfs_inobt_walk()
767 for_each_perag_from(mp, agno, pag) { in xfs_inobt_walk()
Dxfs_filestream.c41 xfs_agnumber_t agno) in xfs_filestream_peek_ag() argument
46 pag = xfs_perag_get(mp, agno); in xfs_filestream_peek_ag()
55 xfs_agnumber_t agno) in xfs_filestream_get_ag() argument
60 pag = xfs_perag_get(mp, agno); in xfs_filestream_get_ag()
69 xfs_agnumber_t agno) in xfs_filestream_put_ag() argument
73 pag = xfs_perag_get(mp, agno); in xfs_filestream_put_ag()
Dxfs_itable.c252 xfs_agnumber_t agno = XFS_INO_TO_AGNO(mp, startino); in xfs_bulkstat_already_done() local
255 return agno >= mp->m_sb.sb_agcount || in xfs_bulkstat_already_done()
256 startino != XFS_AGINO_TO_INO(mp, agno, agino); in xfs_bulkstat_already_done()
379 xfs_agnumber_t agno, in xfs_inumbers_walk() argument
384 .xi_startino = XFS_AGINO_TO_INO(mp, agno, irec->ir_startino), in xfs_inumbers_walk()
396 ic->breq->startino = XFS_AGINO_TO_INO(mp, agno, irec->ir_startino) + in xfs_inumbers_walk()
/Linux-v6.1/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
847 int iagno, ino, extno, bitno, sword, agno; in diFree() local
881 agno = BLKTOAG(JFS_IP(ip)->agstart, JFS_SBI(ip->i_sb)); in diFree()
885 AG_LOCK(imap, agno); in diFree()
896 AG_UNLOCK(imap, agno); in diFree()
916 AG_UNLOCK(imap, agno); in diFree()
925 if (imap->im_agctl[agno].numfree > imap->im_agctl[agno].numinos) { in diFree()
928 AG_UNLOCK(imap, agno); in diFree()
937 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,
697 int rc, agno; in dbAlloc() local
752 agno = blkno >> bmp->db_agl2size; in dbAlloc()
763 if (atomic_read(&bmp->db_active[agno])) in dbAlloc()
797 writers = atomic_read(&bmp->db_active[agno]); in dbAlloc()
799 ((writers == 1) && (JFS_IP(ip)->active_ag != agno))) { in dbAlloc()
842 if ((rc = dbAllocAG(bmp, agno, nblocks, l2nb, results)) != -ENOSPC) in dbAlloc()
852 agno = dbNextAG(ipbmap); in dbAlloc()
858 if ((rc = dbAllocAG(bmp, agno, nblocks, l2nb, results)) == -ENOSPC) in dbAlloc()
1293 dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb, s64 * results) in dbAllocAG() argument
[all …]
/Linux-v6.1/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