Home
last modified time | relevance | path

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

123

/Linux-v5.15/fs/xfs/libxfs/
Dxfs_types.c20 xfs_agnumber_t agno) in xfs_ag_block_count() argument
22 ASSERT(agno < mp->m_sb.sb_agcount); in xfs_ag_block_count()
24 if (agno < mp->m_sb.sb_agcount - 1) in xfs_ag_block_count()
26 return mp->m_sb.sb_dblocks - (agno * mp->m_sb.sb_agblocks); in xfs_ag_block_count()
36 xfs_agnumber_t agno, in xfs_verify_agbno() argument
41 eoag = xfs_ag_block_count(mp, agno); in xfs_verify_agbno()
58 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, fsbno); in xfs_verify_fsbno() local
60 if (agno >= mp->m_sb.sb_agcount) in xfs_verify_fsbno()
62 return xfs_verify_agbno(mp, agno, XFS_FSB_TO_AGBNO(mp, fsbno)); in xfs_verify_fsbno()
92 xfs_agnumber_t agno, in xfs_agino_range() argument
[all …]
Dxfs_ag.h109 int xfs_initialize_perag_data(struct xfs_mount *mp, xfs_agnumber_t agno);
112 struct xfs_perag *xfs_perag_get(struct xfs_mount *mp, xfs_agnumber_t agno);
113 struct xfs_perag *xfs_perag_get_tag(struct xfs_mount *mp, xfs_agnumber_t agno,
138 #define for_each_perag(mp, agno, pag) \ argument
139 (agno) = 0; \
140 for_each_perag_from((mp), (agno), (pag))
142 #define for_each_perag_tag(mp, agno, pag, tag) \ argument
143 for ((agno) = 0, (pag) = xfs_perag_get_tag((mp), 0, (tag)); \
145 (agno) = (pag)->pag_agno + 1, \
147 (pag) = xfs_perag_get_tag((mp), (agno), (tag)))
[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()
188 xfs_agnumber_t agno; in xfs_free_perag() local
190 for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { in xfs_free_perag()
192 pag = radix_tree_delete(&mp->m_perag_tree, agno); in xfs_free_perag()
326 id->agno == XFS_FSB_TO_AGNO(mp, mp->m_sb.sb_logstart); in is_log_ag()
338 xfs_btree_init_block(mp, bp, id->type, 0, 0, id->agno); in xfs_btroot_init()
405 xfs_btree_init_block(mp, bp, XFS_BTNUM_BNO, 0, 1, id->agno); in xfs_bnoroot_init()
415 xfs_btree_init_block(mp, bp, XFS_BTNUM_CNT, 0, 1, id->agno); in xfs_cntroot_init()
[all …]
Dxfs_ialloc.h72 xfs_agnumber_t agno, /* allocation group number */
83 xfs_agnumber_t agno); /* allocation group number */
102 xfs_agnumber_t agno, xfs_agblock_t agbno,
106 xfs_agnumber_t agno, struct xfs_buf **bpp);
126 int xfs_ialloc_check_shrink(struct xfs_trans *tp, xfs_agnumber_t agno,
Dxfs_types.h189 xfs_agblock_t xfs_ag_block_count(struct xfs_mount *mp, xfs_agnumber_t agno);
190 bool xfs_verify_agbno(struct xfs_mount *mp, xfs_agnumber_t agno,
196 void xfs_agino_range(struct xfs_mount *mp, xfs_agnumber_t agno,
198 bool xfs_verify_agino(struct xfs_mount *mp, xfs_agnumber_t agno,
200 bool xfs_verify_agino_or_null(struct xfs_mount *mp, xfs_agnumber_t agno,
Dxfs_alloc.c233 xfs_agnumber_t agno = cur->bc_ag.pag->pag_agno; in xfs_alloc_get_rec() local
248 if (!xfs_verify_agbno(mp, agno, *bno)) in xfs_alloc_get_rec()
252 if (!xfs_verify_agbno(mp, agno, *bno + *len - 1)) in xfs_alloc_get_rec()
260 cur->bc_btnum == XFS_BTNUM_BNO ? "Block" : "Size", agno); in xfs_alloc_get_rec()
692 xfs_agnumber_t agno, /* allocation group number */ in xfs_alloc_read_agfl() argument
698 ASSERT(agno != NULLAGNUMBER); in xfs_alloc_read_agfl()
701 XFS_AG_DADDR(mp, agno, XFS_AGFL_DADDR(mp)), in xfs_alloc_read_agfl()
1073 XFS_AGB_TO_DADDR(args->mp, args->agno, fbno), in xfs_alloc_ag_vextent_small()
1879 xfs_agnumber_t agno, in xfs_free_ag_extent() argument
2174 trace_xfs_free_extent(mp, agno, bno, len, type, haveleft, haveright); in xfs_free_ag_extent()
[all …]
Dxfs_alloc.h58 xfs_agnumber_t agno; /* allocation group number */ member
134 xfs_agnumber_t agno, /* allocation group number */
155 xfs_agnumber_t agno, /* allocation group number */
211 xfs_agnumber_t agno, int flags, struct xfs_buf **bpp);
213 xfs_agnumber_t agno, struct xfs_buf **bpp);
Dxfs_ialloc.c108 xfs_agnumber_t agno = cur->bc_ag.pag->pag_agno; in xfs_inobt_get_rec() local
119 if (!xfs_verify_agino(mp, agno, irec->ir_startino)) in xfs_inobt_get_rec()
140 cur->bc_btnum == XFS_BTNUM_INO ? "Used" : "Free", agno); in xfs_inobt_get_rec()
265 xfs_agnumber_t agno, in xfs_ialloc_inode_init() argument
307 ino = XFS_AGINO_TO_INO(mp, agno, XFS_AGB_TO_AGINO(mp, agbno)); in xfs_ialloc_inode_init()
318 xfs_icreate_log(tp, agno, agbno, icount, in xfs_ialloc_inode_init()
327 d = XFS_AGB_TO_DADDR(mp, agno, agbno + in xfs_ialloc_inode_init()
1584 xfs_agnumber_t agno; in xfs_ialloc_next_ag() local
1587 agno = mp->m_agirotor; in xfs_ialloc_next_ag()
1592 return agno; in xfs_ialloc_next_ag()
[all …]
/Linux-v5.15/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 …]
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()
525 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_agf() local
[all …]
Dfscounters.c71 xfs_agnumber_t agno; in xchk_fscount_warmup() local
74 for_each_perag(mp, agno, pag) { in xchk_fscount_warmup()
81 error = xfs_ialloc_read_agi(mp, sc->tp, agno, &agi_bp); in xchk_fscount_warmup()
84 error = xfs_alloc_read_agf(mp, sc->tp, agno, 0, &agf_bp); 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()
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,
Dcommon.c66 xfs_agnumber_t agno, in __xchk_process_error() argument
88 trace_xchk_op_error(sc, agno, bno, *error, in __xchk_process_error()
98 xfs_agnumber_t agno, in xchk_process_error() argument
102 return __xchk_process_error(sc, agno, bno, error, in xchk_process_error()
109 xfs_agnumber_t agno, in xchk_xref_process_error() argument
113 return __xchk_process_error(sc, agno, bno, error, in xchk_xref_process_error()
406 xfs_agnumber_t agno, in xchk_ag_read_headers() argument
413 sa->pag = xfs_perag_get(mp, agno); in xchk_ag_read_headers()
417 error = xfs_ialloc_read_agi(mp, sc->tp, agno, &sa->agi_bp); in xchk_ag_read_headers()
421 error = xfs_alloc_read_agf(mp, sc->tp, agno, 0, &sa->agf_bp); in xchk_ag_read_headers()
[all …]
Dialloc.c107 xfs_agnumber_t agno = bs->cur->bc_ag.pag->pag_agno; in xchk_iallocbt_chunk() local
112 !xfs_verify_agbno(mp, agno, bno) || in xchk_iallocbt_chunk()
113 !xfs_verify_agbno(mp, agno, bno + len - 1)) in xchk_iallocbt_chunk()
217 xfs_agnumber_t agno = bs->cur->bc_ag.pag->pag_agno; in xchk_iallocbt_check_cluster() local
245 imap.im_blkno = XFS_AGB_TO_DADDR(mp, agno, agbno); in xchk_iallocbt_check_cluster()
256 trace_xchk_iallocbt_check_cluster(mp, agno, irec->ir_startino, in xchk_iallocbt_check_cluster()
427 xfs_agnumber_t agno = bs->cur->bc_ag.pag->pag_agno; in xchk_iallocbt_rec() local
449 if (!xfs_verify_agino(mp, agno, agino) || in xchk_iallocbt_rec()
450 !xfs_verify_agino(mp, agno, agino + XFS_INODES_PER_CHUNK - 1)) { in xchk_iallocbt_rec()
/Linux-v5.15/fs/xfs/
Dxfs_discard.c25 xfs_agnumber_t agno, in xfs_trim_extents() argument
39 pag = xfs_perag_get(mp, agno); in xfs_trim_extents()
48 error = xfs_alloc_read_agf(mp, NULL, agno, 0, &agbp); 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()
[all …]
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))
274 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno),
275 TP_ARGS(mp, agno),
278 __field(xfs_agnumber_t, agno)
[all …]
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.c91 xfs_agnumber_t agno, in xfs_icreate_log() argument
107 icp->ic_format.icl_ag = cpu_to_be32(agno); in xfs_icreate_log()
150 xfs_agnumber_t agno; in xlog_recover_icreate_commit_pass2() local
171 agno = be32_to_cpu(icl->icl_ag); in xlog_recover_icreate_commit_pass2()
172 if (agno >= mp->m_sb.sb_agcount) { in xlog_recover_icreate_commit_pass2()
227 daddr = XFS_AGB_TO_DADDR(mp, agno, in xlog_recover_icreate_commit_pass2()
253 return xfs_ialloc_inode_init(mp, NULL, buffer_list, count, agno, agbno, in xlog_recover_icreate_commit_pass2()
Dxfs_fsops.c52 for (id->agno = nagcount - 1; in xfs_resizefs_init_new_ags()
53 id->agno >= oagcount; in xfs_resizefs_init_new_ags()
54 id->agno--, delta -= id->agsize) { in xfs_resizefs_init_new_ags()
56 if (id->agno == nagcount - 1) in xfs_resizefs_init_new_ags()
57 id->agsize = nb - (id->agno * in xfs_resizefs_init_new_ags()
203 pag = xfs_perag_get(mp, id.agno); in xfs_growfs_data_private()
568 xfs_agnumber_t agno; in xfs_fs_reserve_ag_blocks() local
574 for_each_perag(mp, agno, pag) { in xfs_fs_reserve_ag_blocks()
596 xfs_agnumber_t agno; in xfs_fs_unreserve_ag_blocks() local
601 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()
/Linux-v5.15/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,
689 int rc, agno; in dbAlloc() local
744 agno = blkno >> bmp->db_agl2size; in dbAlloc()
755 if (atomic_read(&bmp->db_active[agno])) in dbAlloc()
789 writers = atomic_read(&bmp->db_active[agno]); in dbAlloc()
791 ((writers == 1) && (JFS_IP(ip)->active_ag != agno))) { in dbAlloc()
834 if ((rc = dbAllocAG(bmp, agno, nblocks, l2nb, results)) != -ENOSPC) in dbAlloc()
844 agno = dbNextAG(ipbmap); in dbAlloc()
850 if ((rc = dbAllocAG(bmp, agno, nblocks, l2nb, results)) == -ENOSPC) in dbAlloc()
1353 dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb, s64 * results) in dbAllocAG() argument
[all …]
/Linux-v5.15/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