/linux-6.3-rc2/fs/xfs/libxfs/ |
A D | xfs_ag.h | 216 xfs_agnumber_t *agno, in xfs_perag_next() argument 221 *agno = pag->pag_agno + 1; in xfs_perag_next() 227 (*agno)++; in xfs_perag_next() 241 (agno) = 0; \ 254 xfs_agnumber_t *agno, in xfs_perag_next_wrap() argument 261 *agno = pag->pag_agno + 1; in xfs_perag_next_wrap() 264 if (*agno >= wrap_agno) { in xfs_perag_next_wrap() 267 *agno = restart_agno; in xfs_perag_next_wrap() 273 (*agno)++; in xfs_perag_next_wrap() 283 for ((agno) = (start_agno), (pag) = xfs_perag_grab((mp), (agno)); \ [all …]
|
A D | xfs_types.c | 24 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() 83 xfs_agnumber_t agno, in xfs_verify_agno_agino() argument 89 xfs_agino_range(mp, agno, &first, &last); in xfs_verify_agno_agino() 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() 109 return xfs_verify_agno_agino(mp, agno, agino); in xfs_verify_ino() 174 xfs_agnumber_t agno; in xfs_icount_range() local [all …]
|
A D | xfs_ag.c | 44 xfs_agnumber_t agno) in xfs_perag_get() argument 102 xfs_agnumber_t agno) in xfs_perag_grab() argument 242 xfs_agnumber_t agno; in xfs_free_perag() local 244 for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { in xfs_free_perag() 266 xfs_agnumber_t agno, in __xfs_ag_block_count() argument 270 ASSERT(agno < agcount); in __xfs_ag_block_count() 272 if (agno < agcount - 1) in __xfs_ag_block_count() 280 xfs_agnumber_t agno) in xfs_ag_block_count() argument 314 xfs_agnumber_t agno, in xfs_agino_range() argument 643 agf->agf_seqno = cpu_to_be32(id->agno); in xfs_agfblock_init() [all …]
|
A D | xfs_alloc.c | 1814 xfs_agnumber_t agno, in xfs_free_ag_extent() argument 2266 xfs_agnumber_t agno, in xfs_free_agfl_block() argument 2390 xfs_agnumber_t agno, in xfs_defer_agfl_block() argument 2426 xfs_agnumber_t agno; in __xfs_free_extent_later() local 2629 targs.agno = args->agno; in xfs_alloc_fix_freelist() 3134 if (args->agno != NULLAGNUMBER && *minimum_agno > args->agno) { in xfs_alloc_vextent_check_args() 3276 xfs_agnumber_t agno) in xfs_alloc_vextent_this_ag() argument 3282 args->agno = agno; in xfs_alloc_vextent_this_ag() 3326 xfs_agnumber_t agno; in xfs_alloc_vextent_iterate_ags() local 3332 args->agno = agno; in xfs_alloc_vextent_iterate_ags() [all …]
|
A D | xfs_ag_resv.h | 44 xfs_agnumber_t agno) in xfs_ag_resv_rmapbt_alloc() argument 50 pag = xfs_perag_get(mp, agno); in xfs_ag_resv_rmapbt_alloc()
|
A D | xfs_sb.h | 32 struct xfs_trans *tp, xfs_agnumber_t agno, 35 struct xfs_trans *tp, xfs_agnumber_t agno,
|
A D | xfs_sb.c | 1032 xfs_agnumber_t agno = 1; in xfs_update_secondary_sbs() local 1038 for_each_perag_from(mp, agno, pag) { in xfs_update_secondary_sbs() 1068 if (agno % 16) in xfs_update_secondary_sbs() 1085 error, agno); in xfs_update_secondary_sbs() 1223 xfs_agnumber_t agno, in xfs_sb_read_secondary() argument 1229 ASSERT(agno != 0 && agno != NULLAGNUMBER); in xfs_sb_read_secondary() 1231 XFS_AG_DADDR(mp, agno, XFS_SB_BLOCK(mp)), in xfs_sb_read_secondary() 1245 xfs_agnumber_t agno, in xfs_sb_get_secondary() argument 1251 ASSERT(agno != 0 && agno != NULLAGNUMBER); in xfs_sb_get_secondary() 1253 XFS_AG_DADDR(mp, agno, XFS_SB_BLOCK(mp)), in xfs_sb_get_secondary()
|
/linux-6.3-rc2/fs/xfs/scrub/ |
A D | trace.h | 124 __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 D | common.h | 35 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 D | agheader.c | 30 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() 524 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_agf() local 534 error = xchk_ag_read_headers(sc, agno, &sc->sa); in xchk_agf() 710 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_agfl() local [all …]
|
A D | fscounters.c | 83 xfs_agnumber_t agno; in xchk_fscount_warmup() local 86 for_each_perag(mp, agno, pag) { in xchk_fscount_warmup() 173 xfs_agnumber_t agno) in xchk_fscount_btreeblks() argument 178 error = xchk_ag_init_existing(sc, agno, &sc->sa); in xchk_fscount_btreeblks() 211 xfs_agnumber_t agno; in xchk_fscount_aggregate_agcounts() local 220 for_each_perag(mp, agno, pag) { in xchk_fscount_aggregate_agcounts() 241 error = xchk_fscount_btreeblks(sc, fsc, agno); in xchk_fscount_aggregate_agcounts()
|
A D | common.c | 68 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() 538 xfs_agnumber_t agno, in xchk_ag_init() argument 543 error = xchk_ag_read_headers(sc, agno, sa); in xchk_ag_init()
|
/linux-6.3-rc2/fs/xfs/ |
A D | xfs_trace.h | 288 __entry->agno = agno; 900 __entry->agno = agno; 927 __entry->agno = agno; 1638 __entry->agno = agno; 1674 __entry->agno = agno; 1769 __entry->agno = agno; 2428 __entry->agno = agno; 2586 __entry->agno = agno; 2629 __entry->agno = agno; 2699 __entry->agno = agno; [all …]
|
A D | xfs_extent_busy.c | 36 new->agno = pag->pag_agno; in xfs_extent_busy_insert() 479 trace_xfs_extent_busy_trim(args->mp, args->agno, *bno, *len, in xfs_extent_busy_trim() 504 trace_xfs_extent_busy_clear(mp, busyp->agno, busyp->bno, in xfs_extent_busy_clear_one() 541 xfs_agnumber_t agno = NULLAGNUMBER; in xfs_extent_busy_clear() local 545 if (busyp->agno != agno) { in xfs_extent_busy_clear() 548 agno = busyp->agno; in xfs_extent_busy_clear() 549 pag = xfs_perag_get(mp, agno); in xfs_extent_busy_clear() 599 xfs_agnumber_t agno; in xfs_extent_busy_wait_all() local 601 for_each_perag(mp, agno, pag) { in xfs_extent_busy_wait_all() 627 diff = b1->agno - b2->agno; in xfs_extent_busy_ag_cmp()
|
A D | xfs_icreate_item.c | 92 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()
|
A D | xfs_notify_failure.c | 116 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()
|
A D | xfs_fsops.c | 54 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()
|
A D | xfs_filestream.c | 68 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() 272 xfs_agnumber_t agno = XFS_INO_TO_AGNO(mp, pino); in xfs_filestream_create_association() local 282 agno = (item->pag->pag_agno + 1) % mp->m_sb.sb_agcount; in xfs_filestream_create_association() 287 agno = (mp->m_agfrotor / rotorstep) % mp->m_sb.sb_agcount; in xfs_filestream_create_association() 292 ap->blkno = XFS_AGB_TO_FSB(args->mp, agno, 0); in xfs_filestream_create_association() 301 error = xfs_filestream_pick_ag(args, pino, agno, flags, longest); in xfs_filestream_create_association()
|
A D | xfs_iwalk.c | 572 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 D | xfs_itable.c | 252 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()
|
A D | xfs_discard.c | 155 xfs_agnumber_t agno; in xfs_ioc_trim() local 194 agno = xfs_daddr_to_agno(mp, start); in xfs_ioc_trim() 195 for_each_perag_range(mp, agno, xfs_daddr_to_agno(mp, end), pag) { in xfs_ioc_trim()
|
/linux-6.3-rc2/fs/jfs/ |
A D | jfs_imap.c | 57 #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 D | jfs_discard.c | 70 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 D | jfs_dmap.c | 713 int rc, agno; in dbAlloc() local 768 agno = blkno >> bmp->db_agl2size; in dbAlloc() 868 agno = dbNextAG(ipbmap); in dbAlloc() 1583 nblocks = bmp->db_agfree[agno]; in dbDiscardAG() 2234 if (agno > bmp->db_maxag) in dbAllocBits() 2235 bmp->db_maxag = agno; in dbAllocBits() 2385 if ((bmp->db_agfree[agno] == bmp->db_agsize && agno == bmp->db_maxag) || in dbFreeBits() 3290 if (agno > bmp->db_maxag) in dbAllocDmapBU() 3291 bmp->db_maxag = agno; in dbAllocDmapBU() 3370 agno = bmp->db_numag; in dbExtendFS() [all …]
|
/linux-6.3-rc2/fs/ext4/ |
A D | fsmap.c | 91 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 …]
|