Home
last modified time | relevance | path

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

123

/linux/fs/xfs/libxfs/
A Dxfs_ag.h125 xfs_agnumber_t *agno, in xfs_perag_next() argument
130 *agno = pag->pag_agno + 1; in xfs_perag_next()
132 if (*agno > end_agno) in xfs_perag_next()
134 return xfs_perag_get(mp, *agno); in xfs_perag_next()
138 for ((pag) = xfs_perag_get((mp), (agno)); \
142 #define for_each_perag_from(mp, agno, pag) \ argument
146 #define for_each_perag(mp, agno, pag) \ argument
147 (agno) = 0; \
148 for_each_perag_from((mp), (agno), (pag))
153 (agno) = (pag)->pag_agno + 1, \
[all …]
A 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()
36 xfs_agnumber_t agno, in xfs_verify_agbno() argument
60 if (agno >= mp->m_sb.sb_agcount) in xfs_verify_fsbno()
92 xfs_agnumber_t agno, in xfs_agino_range() argument
123 xfs_agnumber_t agno, in xfs_verify_agino() argument
140 xfs_agnumber_t agno, in xfs_verify_agino_or_null() argument
158 if (agno >= mp->m_sb.sb_agcount) in xfs_verify_ino()
227 xfs_agnumber_t agno; in xfs_icount_range() local
[all …]
A Dxfs_ag.c44 xfs_agnumber_t agno) in xfs_perag_get() argument
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()
526 agf->agf_seqno = cpu_to_be32(id->agno); in xfs_agfblock_init()
595 agi->agi_seqno = cpu_to_be32(id->agno); in xfs_agiblock_init()
767 xfs_agnumber_t agno, in xfs_ag_shrink_space() argument
786 ASSERT(agno == mp->m_sb.sb_agcount - 1); in xfs_ag_shrink_space()
944 xfs_agnumber_t agno, in xfs_ag_get_geometry() argument
955 if (agno >= mp->m_sb.sb_agcount) in xfs_ag_get_geometry()
[all …]
A 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,
A Dxfs_alloc.c698 ASSERT(agno != NULLAGNUMBER); in xfs_alloc_read_agfl()
1879 xfs_agnumber_t agno, in xfs_free_ag_extent() argument
2331 xfs_agnumber_t agno, in xfs_free_agfl_block() argument
2455 xfs_agnumber_t agno, in xfs_defer_agfl_block() argument
2491 xfs_agnumber_t agno; in __xfs_free_extent_later() local
2693 targs.agno = args->agno; in xfs_alloc_fix_freelist()
3279 if (args->agno == sagno && in xfs_alloc_vextent()
3291 args->agno = sagno; in xfs_alloc_vextent()
3293 args->agno = 0; in xfs_alloc_vextent()
3316 if (args->agno == sagno) in xfs_alloc_vextent()
[all …]
A 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,
A 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);
A Dxfs_ialloc.c265 xfs_agnumber_t agno, in xfs_ialloc_inode_init() argument
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()
1734 xfs_agnumber_t agno; in xfs_dialloc() local
1775 agno = start_agno; in xfs_dialloc()
1790 if (++agno == mp->m_maxagi) in xfs_dialloc()
1791 agno = 0; in xfs_dialloc()
1792 if (agno == start_agno) { in xfs_dialloc()
1816 xfs_agnumber_t agno, in xfs_difree_inode_chunk() argument
[all …]
/linux/fs/xfs/scrub/
A Dtrace.h124 __entry->agno,
157 __entry->agno = agno;
579 __entry->agno = agno;
675 __entry->agno = agno;
709 __entry->agno = agno;
749 __entry->agno = agno;
774 __entry->agno = agno;
797 __entry->agno = agno;
824 __entry->agno = agno;
853 __entry->agno = agno;
[all …]
A Dagheader.c30 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_superblock_xref() local
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()
525 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_agf() local
550 if (!xfs_verify_agbno(mp, agno, agbno)) in xchk_agf()
554 if (!xfs_verify_agbno(mp, agno, agbno)) in xchk_agf()
703 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_agfl() local
854 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_agi() local
[all …]
A 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()
A 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,
A 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()
544 xfs_agnumber_t agno, in xchk_ag_init() argument
[all …]
A 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/fs/xfs/
A Dxfs_trace.h173 __entry->agno = agno;
282 __entry->agno = agno;
644 __entry->agno = agno;
676 __entry->agno = agno;
887 __entry->agno = agno;
914 __entry->agno = agno;
1638 __entry->agno = agno;
1674 __entry->agno = agno;
1769 __entry->agno = agno;
2433 __entry->agno = agno;
[all …]
A 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 …]
A 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()
A 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()
A 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()
A 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()
A 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/fs/jfs/
A 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
885 AG_LOCK(imap, agno); in diFree()
896 AG_UNLOCK(imap, agno); in diFree()
925 if (imap->im_agctl[agno].numfree > imap->im_agctl[agno].numinos) { in diFree()
1264 AG_UNLOCK(imap, agno); in diFree()
1280 AG_UNLOCK(imap, agno); in diFree()
1343 AG_LOCK(imap, agno); in diAlloc()
1366 AG_LOCK(imap, agno); in diAlloc()
1378 AG_LOCK(imap, agno); in diAlloc()
[all …]
A 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()
A Djfs_dmap.c689 int rc, agno; in dbAlloc() local
744 agno = blkno >> bmp->db_agl2size; in dbAlloc()
844 agno = dbNextAG(ipbmap); in dbAlloc()
1627 nblocks = bmp->db_agfree[agno]; in dbDiscardAG()
2278 if (agno > bmp->db_maxag) in dbAllocBits()
2279 bmp->db_maxag = agno; in dbAllocBits()
2429 if ((bmp->db_agfree[agno] == bmp->db_agsize && agno == bmp->db_maxag) || in dbFreeBits()
3334 if (agno > bmp->db_maxag) in dbAllocDmapBU()
3335 bmp->db_maxag = agno; in dbAllocDmapBU()
3414 agno = bmp->db_numag; in dbExtendFS()
[all …]
/linux/fs/ext4/
A 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()
190 ext4_group_t agno, ext4_grpblk_t start, in ext4_getfsmap_datadev_helper() argument
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
326 if (ext4_bg_has_super(sb, agno)) { in ext4_getfsmap_find_sb()
334 len = ext4_bg_num_gdb(sb, agno); in ext4_getfsmap_find_sb()
412 ext4_group_t agno; in ext4_getfsmap_find_fixed_metadata() local
418 for (agno = 0; agno < EXT4_SB(sb)->s_groups_count; agno++) { in ext4_getfsmap_find_fixed_metadata()
[all …]

Completed in 59 milliseconds

123