| /linux/fs/xfs/libxfs/ |
| H A D | xfs_ag.h | 141 int xfs_initialize_perag_data(struct xfs_mount *mp, xfs_agnumber_t agno); 148 xfs_agnumber_t agno) in xfs_perag_get() argument 150 return to_perag(xfs_group_get(mp, agno, XG_TYPE_AG)); in xfs_perag_get() 171 xfs_agnumber_t agno) in xfs_perag_grab() argument 173 return to_perag(xfs_group_grab(mp, agno, XG_TYPE_AG)); in xfs_perag_grab() 214 xfs_agblock_t xfs_ag_block_count(struct xfs_mount *mp, xfs_agnumber_t agno); 215 void xfs_agino_range(struct xfs_mount *mp, xfs_agnumber_t agno, 260 xfs_ag_contains_log(struct xfs_mount *mp, xfs_agnumber_t agno) in xfs_ag_contains_log() argument 263 agno == XFS_FSB_TO_AGNO(mp, mp->m_sb.sb_logstart); in xfs_ag_contains_log() 269 xfs_agnumber_t *agno, in xfs_perag_next_wrap() argument [all …]
|
| H 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() 133 xfs_group_free(mp, agno, XG_TYPE_AG, xfs_perag_uninit); 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() 148 return dblocks - (agno * mp->m_sb.sb_agblocks); in __xfs_ag_block_count() 154 xfs_agnumber_t agno) in xfs_ag_block_count() argument 156 return __xfs_ag_block_count(mp, agno, mp->m_sb.sb_agcount, in xfs_ag_block_count() 188 xfs_agnumber_t agno, in xfs_agino_range() argument [all …]
|
| H A D | xfs_sb.h | 35 struct xfs_trans *tp, xfs_agnumber_t agno, 38 struct xfs_trans *tp, xfs_agnumber_t agno,
|
| H 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() 3563 args->pag = xfs_perag_get(args->mp, args->agno); in xfs_alloc_vextent_prepare_ag() 3619 args->agno > minimum_agno)) in xfs_alloc_vextent_finish() 3620 args->tp->t_highest_agno = args->agno; in xfs_alloc_vextent_finish() 3684 xfs_agnumber_t agno) in xfs_alloc_vextent_this_ag() argument 3691 ASSERT(pag_agno(args->pag) == agno); in xfs_alloc_vextent_this_ag() 3693 args->agno = agno; in xfs_alloc_vextent_this_ag() 3741 xfs_agnumber_t agno; in xfs_alloc_vextent_iterate_ags() local 3748 mp->m_sb.sb_agcount, agno, args->pag) { in xfs_alloc_vextent_iterate_ags() [all …]
|
| H 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);
|
| H A D | xfs_format.h | 702 #define XFS_AGB_TO_FSB(mp,agno,agbno) \ argument 703 (((xfs_fsblock_t)(agno) << (mp)->m_sb.sb_agblklog) | (agbno)) 708 #define XFS_AGB_TO_DADDR(mp,agno,agbno) \ argument 710 (xfs_fsblock_t)(agno) * (mp)->m_sb.sb_agblocks + (agbno))) 711 #define XFS_AG_DADDR(mp,agno,d) (XFS_AGB_TO_DADDR(mp, agno, 0) + (d)) argument
|
| H A D | xfs_rmap_btree.h | 70 struct xfs_buftarg *btp, xfs_agnumber_t agno);
|
| H A D | xfs_ialloc.h | 92 xfs_agnumber_t agno, xfs_agblock_t agbno,
|
| /linux/fs/jfs/ |
| H 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 293 int iagno, ino, extno, rc, agno; in diRead() local 342 agno = BLKTOAG(agstart, JFS_SBI(ip->i_sb)); in diRead() 345 if (agno >= MAXAG || agno < 0) in diRead() 851 int iagno, ino, extno, bitno, sword, agno; in diFree() local 885 agno = BLKTOAG(JFS_IP(ip)->agstart, JFS_SBI(ip->i_sb)); in diFree() 889 AG_LOCK(imap, agno); in diFree() 900 AG_UNLOCK(imap, agno); in diFree() 920 AG_UNLOCK(imap, agno); in diFree() [all …]
|
| /linux/fs/ext4/ |
| H A D | fsmap.c | 92 ext4_group_t agno; in ext4_getfsmap_helper() local 139 &agno, &cno); in ext4_getfsmap_helper() 140 trace_ext4_fsmap_mapping(sb, info->gfi_dev, agno, in ext4_getfsmap_helper() 163 ext4_get_group_no_and_offset(sb, rec_fsblk, &agno, &cno); in ext4_getfsmap_helper() 164 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_meta_helper() argument 201 ext4_group_first_block_no(sb, agno)); in ext4_getfsmap_meta_helper() 244 ext4_group_t agno, ext4_grpblk_t start, in ext4_getfsmap_datadev_helper() argument 256 fsb = (EXT4_C2B(sbi, start) + ext4_group_first_block_no(sb, agno)); in ext4_getfsmap_datadev_helper() 300 ext4_group_first_block_no(sb, agno + 1)) { in ext4_getfsmap_datadev_helper() [all …]
|
| /linux/fs/xfs/ |
| H 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()
|
| H 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()
|
| H 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()
|
| H A D | xfs_icreate_item.h | 17 void xfs_icreate_log(struct xfs_trans *tp, xfs_agnumber_t agno,
|
| H A D | xfs_ioctl.c | 214 if (hdr->agno >= mp->m_sb.sb_agcount) in xfs_bulk_ireq_setup() 218 breq->startino = XFS_AGINO_TO_INO(mp, hdr->agno, 0); in xfs_bulk_ireq_setup() 219 else if (XFS_INO_TO_AGNO(mp, breq->startino) < hdr->agno) in xfs_bulk_ireq_setup() 225 if (XFS_INO_TO_AGNO(mp, breq->startino) > hdr->agno) in xfs_bulk_ireq_setup() 227 } else if (hdr->agno) in xfs_bulk_ireq_setup()
|
| /linux/fs/xfs/scrub/ |
| H A D | trace.h | 157 __field(xfs_agnumber_t, agno) 167 __entry->agno = sm->sm_agno; 177 __entry->agno, 230 __field(xfs_agnumber_t, agno) 240 __entry->agno = vhead->svh_agno; 250 __entry->agno, 300 TP_PROTO(struct xfs_scrub *sc, xfs_agnumber_t agno, 302 TP_ARGS(sc, agno, bno, error, ret_ip), 306 __field(xfs_agnumber_t, agno) 314 __entry->agno = agno; [all …]
|
| H 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() 126 error = xfs_sb_read_secondary(mp, sc->tp, agno, &bp); in xchk_superblock() 144 if (!xchk_process_error(sc, agno, XFS_SB_BLOCK(mp), &error)) in xchk_superblock() 602 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_agf() local [all …]
|
| H A D | newbt.c | 254 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(sc->mp, xnr->alloc_hint); in xrep_newbt_validate_ag_alloc_hint() local 256 if (agno == pag_agno(sc->sa.pag) && in xrep_newbt_validate_ag_alloc_hint() 287 xfs_agnumber_t agno; in xrep_newbt_alloc_ag_blocks() local 301 agno = XFS_FSB_TO_AGNO(mp, args.fsbno); in xrep_newbt_alloc_ag_blocks() 302 if (agno != pag_agno(sc->sa.pag)) { in xrep_newbt_alloc_ag_blocks() 303 ASSERT(agno == pag_agno(sc->sa.pag)); in xrep_newbt_alloc_ag_blocks() 362 xfs_agnumber_t agno; in xrep_newbt_alloc_file_blocks() local 376 agno = XFS_FSB_TO_AGNO(mp, args.fsbno); in xrep_newbt_alloc_file_blocks() 378 pag = xfs_perag_get(mp, agno); in xrep_newbt_alloc_file_blocks()
|
| H 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,
|
| H 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 …]
|
| H 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()
|
| H A D | fscounters.c | 263 xfs_agnumber_t agno) in xchk_fscount_btreeblks() argument 268 error = xchk_ag_init_existing(sc, agno, &sc->sa); in xchk_fscount_btreeblks()
|
| H A D | cow_repair.c | 247 xfs_agnumber_t agno; in xrep_cow_find_bad() local 250 agno = XFS_FSB_TO_AGNO(sc->mp, xc->irec.br_startblock); in xrep_cow_find_bad() 253 pag = xfs_perag_get(sc->mp, agno); in xrep_cow_find_bad()
|
| H A D | reap.c | 794 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(sc->mp, fsbno); in xreap_fsmeta_extent() local 807 sc->sa.pag = xfs_perag_get(sc->mp, agno); in xreap_fsmeta_extent() 1599 xfs_agnumber_t agno; in xreap_ifork_extent() local 1607 agno = XFS_FSB_TO_AGNO(sc->mp, imap->br_startblock); in xreap_ifork_extent() 1608 sc->sa.pag = xfs_perag_get(sc->mp, agno); in xreap_ifork_extent()
|
| H A D | btree.c | 371 xfs_agnumber_t agno; in xchk_btree_check_block_owner() local 379 agno = xfs_daddr_to_agno(bs->cur->bc_mp, daddr); in xchk_btree_check_block_owner() 389 error = xchk_ag_init_existing(bs->sc, agno, &bs->sc->sa); in xchk_btree_check_block_owner()
|