| /fs/xfs/libxfs/ |
| A D | xfs_ag.h | 148 xfs_agnumber_t agno) in xfs_perag_get() argument 171 xfs_agnumber_t agno) in xfs_perag_grab() argument 269 xfs_agnumber_t *agno, in xfs_perag_next_wrap() argument 276 *agno = pag_agno(pag) + 1; in xfs_perag_next_wrap() 278 while (*agno != stop_agno) { in xfs_perag_next_wrap() 279 if (*agno >= wrap_agno) { in xfs_perag_next_wrap() 282 *agno = restart_agno; in xfs_perag_next_wrap() 285 pag = xfs_perag_grab(mp, *agno); in xfs_perag_next_wrap() 288 (*agno)++; in xfs_perag_next_wrap() 298 for ((agno) = (start_agno), (pag) = xfs_perag_grab((mp), (agno)); \ [all …]
|
| A D | xfs_types.c | 26 xfs_agnumber_t agno, in xfs_verify_agno_agbno() argument 31 eoag = xfs_ag_block_count(mp, agno); in xfs_verify_agno_agbno() 48 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, fsbno); in xfs_verify_fsbno() local 50 if (agno >= mp->m_sb.sb_agcount) in xfs_verify_fsbno() 52 return xfs_verify_agno_agbno(mp, agno, XFS_FSB_TO_AGBNO(mp, fsbno)); in xfs_verify_fsbno() 85 xfs_agnumber_t agno, in xfs_verify_agno_agino() argument 91 xfs_agino_range(mp, agno, &first, &last); in xfs_verify_agno_agino() 104 xfs_agnumber_t agno = XFS_INO_TO_AGNO(mp, ino); in xfs_verify_ino() local 107 if (agno >= mp->m_sb.sb_agcount) in xfs_verify_ino() 109 if (XFS_AGINO_TO_INO(mp, agno, agino) != ino) in xfs_verify_ino() [all …]
|
| A D | xfs_ag.c | 130 xfs_agnumber_t agno; in xfs_free_perag_range() local 132 for (agno = first_agno; agno < end_agno; agno++) in xfs_free_perag_range() 140 xfs_agnumber_t agno, in __xfs_ag_block_count() argument 144 ASSERT(agno < agcount); in __xfs_ag_block_count() 146 if (agno < agcount - 1) in __xfs_ag_block_count() 154 xfs_agnumber_t agno) in xfs_ag_block_count() argument 188 xfs_agnumber_t agno, in xfs_agino_range() argument 340 if (xfs_ag_contains_log(mp, id->agno)) { in xfs_freesp_init_recs() 456 if (xfs_ag_contains_log(mp, id->agno)) { in xfs_rmaproot_init() 499 agf->agf_seqno = cpu_to_be32(id->agno); in xfs_agfblock_init() [all …]
|
| A D | xfs_sb.h | 35 struct xfs_trans *tp, xfs_agnumber_t agno, 38 struct xfs_trans *tp, xfs_agnumber_t agno,
|
| A D | xfs_alloc.c | 2958 targs.agno = args->agno; in xfs_alloc_fix_freelist() 3539 if (args->agno != NULLAGNUMBER && *minimum_agno > args->agno) { in xfs_alloc_vextent_check_args() 3619 args->agno > minimum_agno)) in xfs_alloc_vextent_finish() 3684 xfs_agnumber_t agno) in xfs_alloc_vextent_this_ag() argument 3693 args->agno = agno; in xfs_alloc_vextent_this_ag() 3741 xfs_agnumber_t agno; in xfs_alloc_vextent_iterate_ags() local 3749 args->agno = agno; in xfs_alloc_vextent_iterate_ags() 3818 args->agno = NULLAGNUMBER; in xfs_alloc_vextent_start_ag() 3843 if (args->agno == start_agno) in xfs_alloc_vextent_start_ag() 3872 args->agno = NULLAGNUMBER; in xfs_alloc_vextent_first_ag() [all …]
|
| A D | xfs_sb.c | 1607 xfs_agnumber_t agno, in xfs_sb_read_secondary() argument 1613 ASSERT(agno != 0 && agno != NULLAGNUMBER); in xfs_sb_read_secondary() 1615 XFS_AG_DADDR(mp, agno, XFS_SB_BLOCK(mp)), in xfs_sb_read_secondary() 1618 xfs_agno_mark_sick(mp, agno, XFS_SICK_AG_SB); in xfs_sb_read_secondary() 1631 xfs_agnumber_t agno, in xfs_sb_get_secondary() argument 1637 ASSERT(agno != 0 && agno != NULLAGNUMBER); in xfs_sb_get_secondary() 1639 XFS_AG_DADDR(mp, agno, XFS_SB_BLOCK(mp)), in xfs_sb_get_secondary()
|
| A D | xfs_alloc.h | 40 xfs_agnumber_t agno; /* allocation group number */ member 105 int xfs_alloc_vextent_this_ag(struct xfs_alloc_arg *args, xfs_agnumber_t agno);
|
| /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 345 if (agno >= MAXAG || agno < 0) in diRead() 889 AG_LOCK(imap, agno); in diFree() 929 if (imap->im_agctl[agno].numfree > imap->im_agctl[agno].numinos) { in diFree() 1268 AG_UNLOCK(imap, agno); in diFree() 1347 AG_LOCK(imap, agno); in diAlloc() 1363 if (agno < 0 || agno > dn_numag || agno >= MAXAG) in diAlloc() 1373 AG_LOCK(imap, agno); in diAlloc() 1385 AG_LOCK(imap, agno); in diAlloc() [all …]
|
| A D | jfs_discard.c | 70 int agno, agno_end; in jfs_ioc_trim() local 103 agno = BLKTOAG(start, JFS_SBI(ip->i_sb)); in jfs_ioc_trim() 105 while (agno <= agno_end) { in jfs_ioc_trim() 106 trimmed += dbDiscardAG(ip, agno, minlen); in jfs_ioc_trim() 107 agno++; in jfs_ioc_trim()
|
| A D | jfs_dmap.c | 716 int rc, agno; in dbAlloc() local 771 agno = blkno >> bmp->db_agl2size; in dbAlloc() 871 agno = dbNextAG(ipbmap); in dbAlloc() 1592 nblocks = bmp->db_agfree[agno]; in dbDiscardAG() 2253 if (agno > bmp->db_maxag) in dbAllocBits() 2254 bmp->db_maxag = agno; in dbAllocBits() 2404 if ((bmp->db_agfree[agno] == bmp->db_agsize && agno == bmp->db_maxag) || in dbFreeBits() 3326 if (agno > bmp->db_maxag) in dbAllocDmapBU() 3327 bmp->db_maxag = agno; in dbAllocDmapBU() 3406 agno = bmp->db_numag; in dbExtendFS() [all …]
|
| /fs/ext4/ |
| A D | fsmap.c | 91 ext4_group_t agno; in ext4_getfsmap_helper() local 138 &agno, &cno); in ext4_getfsmap_helper() 200 ext4_group_first_block_no(sb, agno)); in ext4_getfsmap_meta_helper() 240 ext4_group_t agno, ext4_grpblk_t start, in ext4_getfsmap_datadev_helper() argument 296 ext4_group_first_block_no(sb, agno + 1)) { in ext4_getfsmap_datadev_helper() 365 ext4_group_t agno, in ext4_getfsmap_find_sb() argument 376 if (ext4_bg_has_super(sb, agno)) { in ext4_getfsmap_find_sb() 384 len = ext4_bg_num_gdb(sb, agno); in ext4_getfsmap_find_sb() 470 ext4_group_t agno; in ext4_getfsmap_find_fixed_metadata() local 476 for (agno = 0; agno < EXT4_SB(sb)->s_groups_count; agno++) { in ext4_getfsmap_find_fixed_metadata() [all …]
|
| A D | mballoc.h | 258 ext4_group_t agno, 266 ext4_group_t agno,
|
| /fs/xfs/scrub/ |
| A D | trace.h | 177 __entry->agno, 250 __entry->agno, 314 __entry->agno = agno; 322 __entry->agno, 380 __entry->agno, 590 __entry->agno, 635 __entry->agno, 672 __entry->agno, 714 __entry->agno, 749 __entry->agno, [all …]
|
| A D | agheader.c | 40 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_superblock_xref() local 49 error = xchk_ag_init_existing(sc, agno, &sc->sa); in xchk_superblock_xref() 50 if (!xchk_xref_process_error(sc, agno, agbno, &error)) in xchk_superblock_xref() 107 xfs_agnumber_t agno; in xchk_superblock() local 113 agno = sc->sm->sm_agno; in xchk_superblock() 114 if (agno == 0) in xchk_superblock() 122 pag = xfs_perag_get(mp, agno); in xchk_superblock() 602 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_agf() local 612 error = xchk_ag_read_headers(sc, agno, &sc->sa); in xchk_agf() 790 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_agfl() local [all …]
|
| A D | iscan.c | 98 xfs_agnumber_t agno = pag_agno(pag); in xchk_iscan_find_next() local 106 xfs_agino_range(mp, agno, &first, &last); in xchk_iscan_find_next() 201 xfs_agnumber_t agno, in xchk_iscan_move_cursor() argument 215 cursor = XFS_AGINO_TO_INO(mp, agno, agino); in xchk_iscan_move_cursor() 314 xfs_agnumber_t agno; in xchk_iscan_advance() local 324 agno = XFS_INO_TO_AGNO(mp, iscan->cursor_ino); in xchk_iscan_advance() 325 pag = xfs_perag_get(mp, agno); in xchk_iscan_advance() 345 xchk_iscan_move_cursor(iscan, agno, agino); in xchk_iscan_advance() 355 agno = (agno + 1) % mp->m_sb.sb_agcount; in xchk_iscan_advance() 356 xchk_iscan_move_cursor(iscan, agno, 0); in xchk_iscan_advance()
|
| A D | newbt.c | 245 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(sc->mp, xnr->alloc_hint); in xrep_newbt_validate_ag_alloc_hint() local 247 if (agno == pag_agno(sc->sa.pag) && in xrep_newbt_validate_ag_alloc_hint() 278 xfs_agnumber_t agno; in xrep_newbt_alloc_ag_blocks() local 292 agno = XFS_FSB_TO_AGNO(mp, args.fsbno); in xrep_newbt_alloc_ag_blocks() 293 if (agno != pag_agno(sc->sa.pag)) { in xrep_newbt_alloc_ag_blocks() 294 ASSERT(agno == pag_agno(sc->sa.pag)); in xrep_newbt_alloc_ag_blocks() 353 xfs_agnumber_t agno; in xrep_newbt_alloc_file_blocks() local 367 agno = XFS_FSB_TO_AGNO(mp, args.fsbno); in xrep_newbt_alloc_file_blocks() 369 pag = xfs_perag_get(mp, agno); in xrep_newbt_alloc_file_blocks()
|
| A D | common.h | 13 bool xchk_process_error(struct xfs_scrub *sc, xfs_agnumber_t agno, 21 xfs_agnumber_t agno, xfs_agblock_t bno, int *error); 110 int xchk_ag_init(struct xfs_scrub *sc, xfs_agnumber_t agno, 122 xfs_agnumber_t agno, in xchk_ag_init_existing() argument 125 int error = xchk_ag_init(sc, agno, sa); in xchk_ag_init_existing() 165 int xchk_ag_read_headers(struct xfs_scrub *sc, xfs_agnumber_t agno,
|
| A D | common.c | 79 xfs_agnumber_t agno, in __xchk_process_error() argument 101 trace_xchk_op_error(sc, agno, bno, *error, ret_ip); in __xchk_process_error() 111 trace_xchk_op_error(sc, agno, bno, *error, ret_ip); in __xchk_process_error() 120 xfs_agnumber_t agno, in xchk_process_error() argument 124 return __xchk_process_error(sc, agno, bno, error, in xchk_process_error() 142 xfs_agnumber_t agno, in xchk_xref_process_error() argument 146 return __xchk_process_error(sc, agno, bno, error, in xchk_xref_process_error() 563 xfs_agnumber_t agno, in xchk_ag_read_headers() argument 569 sa->pag = xfs_perag_get(mp, agno); in xchk_ag_read_headers() 689 xfs_agnumber_t agno, in xchk_ag_init() argument [all …]
|
| A D | inode.c | 98 xfs_agnumber_t agno = XFS_INO_TO_AGNO(mp, sc->sm->sm_ino); in xchk_setup_inode() local 221 trace_xchk_op_error(sc, agno, XFS_INO_TO_AGBNO(mp, sc->sm->sm_ino), in xchk_setup_inode() 733 xfs_agnumber_t agno; in xchk_inode_xref() local 740 agno = XFS_INO_TO_AGNO(sc->mp, ino); in xchk_inode_xref() 743 error = xchk_ag_init_existing(sc, agno, &sc->sa); in xchk_inode_xref() 744 if (!xchk_xref_process_error(sc, agno, agbno, &error)) in xchk_inode_xref()
|
| /fs/xfs/ |
| 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_trace.h | 303 __entry->agno, 342 __entry->agno, 598 __entry->agno) 970 __entry->agno, 1001 __entry->agno, 1216 __entry->agno, 1242 __entry->agno, 1953 __entry->agno, 2196 __entry->agno = args->agno; 4223 __entry->agno = agno; [all …]
|
| A D | xfs_filestream.c | 68 xfs_agnumber_t agno; in xfs_filestream_pick_ag() local 75 for_each_perag_wrap(mp, start_agno, agno, pag) { in xfs_filestream_pick_ag() 268 xfs_agnumber_t agno = XFS_INO_TO_AGNO(mp, pino); in xfs_filestream_create_association() local 278 agno = (pag_agno(item->pag) + 1) % mp->m_sb.sb_agcount; in xfs_filestream_create_association() 283 agno = (mp->m_agfrotor / rotorstep) % mp->m_sb.sb_agcount; in xfs_filestream_create_association() 288 ap->blkno = XFS_AGB_TO_FSB(args->mp, agno, 0); in xfs_filestream_create_association() 297 error = xfs_filestream_pick_ag(args, pino, agno, flags, longest); in xfs_filestream_create_association()
|
| A D | xfs_fsops.c | 58 for (id->agno = nagcount - 1; in xfs_resizefs_init_new_ags() 59 id->agno >= oagcount; in xfs_resizefs_init_new_ags() 60 id->agno--, delta -= id->agsize) { in xfs_resizefs_init_new_ags() 62 if (id->agno == nagcount - 1) in xfs_resizefs_init_new_ags() 63 id->agsize = nb - (id->agno * in xfs_resizefs_init_new_ags() 221 pag = xfs_perag_get(mp, id.agno); in xfs_growfs_data_private()
|
| A D | xfs_itable.c | 292 xfs_agnumber_t agno = XFS_INO_TO_AGNO(mp, startino); in xfs_bulkstat_already_done() local 295 return agno >= mp->m_sb.sb_agcount || in xfs_bulkstat_already_done() 296 startino != XFS_AGINO_TO_INO(mp, agno, agino); in xfs_bulkstat_already_done() 411 xfs_agnumber_t agno, in xfs_inumbers_walk() argument 416 .xi_startino = XFS_AGINO_TO_INO(mp, agno, irec->ir_startino), in xfs_inumbers_walk() 428 ic->breq->startino = XFS_AGINO_TO_INO(mp, agno, irec->ir_startino) + in xfs_inumbers_walk()
|
| A D | xfs_icreate_item.h | 17 void xfs_icreate_log(struct xfs_trans *tp, xfs_agnumber_t agno,
|