/openbmc/linux/fs/xfs/libxfs/ |
H A D | xfs_ag.h | 141 int xfs_initialize_perag_data(struct xfs_mount *mp, xfs_agnumber_t agno); 146 struct xfs_perag *xfs_perag_get(struct xfs_mount *mp, xfs_agnumber_t agno); 147 struct xfs_perag *xfs_perag_get_tag(struct xfs_mount *mp, xfs_agnumber_t agno, 161 xfs_agblock_t xfs_ag_block_count(struct xfs_mount *mp, xfs_agnumber_t agno); 162 void xfs_agino_range(struct xfs_mount *mp, xfs_agnumber_t agno, 217 xfs_ag_contains_log(struct xfs_mount *mp, xfs_agnumber_t agno) in xfs_ag_contains_log() argument 220 agno == XFS_FSB_TO_AGNO(mp, mp->m_sb.sb_logstart); in xfs_ag_contains_log() 229 xfs_agnumber_t *agno, in xfs_perag_next() argument 234 *agno = pag->pag_agno + 1; in xfs_perag_next() 236 while (*agno <= end_agno) { in xfs_perag_next() [all …]
|
H 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() 50 return xfs_verify_agno_agbno(mp, agno, XFS_FSB_TO_AGBNO(mp, fsbno)); 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() 102 xfs_agnumber_t agno = XFS_INO_TO_AGNO(mp, ino); in xfs_verify_ino() local 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() [all …]
|
H A D | xfs_ag.c | 44 xfs_agnumber_t agno) in xfs_perag_get() argument 49 pag = radix_tree_lookup(&mp->m_perag_tree, agno); in xfs_perag_get() 115 xfs_agnumber_t agno) in xfs_perag_grab() argument 120 pag = radix_tree_lookup(&mp->m_perag_tree, agno); in xfs_perag_grab() 255 xfs_agnumber_t agno; in xfs_free_perag() local 257 for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { in xfs_free_perag() 259 pag = radix_tree_delete(&mp->m_perag_tree, agno); in xfs_free_perag() 280 xfs_agnumber_t agno, in __xfs_ag_block_count() argument 284 ASSERT(agno < agcount); in __xfs_ag_block_count() 286 if (agno < agcount - 1) in __xfs_ag_block_count() [all …]
|
H A D | xfs_alloc.c | 1128 XFS_AGB_TO_DADDR(args->mp, args->agno, fbno), in xfs_alloc_ag_vextent_small() 1896 xfs_agnumber_t agno, in xfs_free_ag_extent() argument 2191 trace_xfs_free_extent(mp, agno, bno, len, type, haveleft, haveright); in xfs_free_ag_extent() 2196 trace_xfs_free_extent(mp, agno, bno, len, type, -1, -1); in xfs_free_ag_extent() 2369 xfs_agnumber_t agno, in xfs_free_agfl_block() argument 2377 error = xfs_free_ag_extent(tp, agbp, agno, agbno, 1, oinfo, in xfs_free_agfl_block() 2383 XFS_AGB_TO_DADDR(tp->t_mountp, agno, agbno), in xfs_free_agfl_block() 2493 xfs_agnumber_t agno, in xfs_defer_agfl_block() argument 2499 xfs_fsblock_t fsbno = XFS_AGB_TO_FSB(mp, agno, agbno); in xfs_defer_agfl_block() 2514 trace_xfs_agfl_free_defer(mp, agno, 0, agbno, 1); in xfs_defer_agfl_block() [all …]
|
H 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()
|
H A D | xfs_sb.h | 32 struct xfs_trans *tp, xfs_agnumber_t agno, 35 struct xfs_trans *tp, xfs_agnumber_t agno,
|
/openbmc/linux/fs/xfs/scrub/ |
H A D | trace.h | 119 __field(xfs_agnumber_t, agno) 129 __entry->agno = sm->sm_agno; 139 __entry->agno, 185 TP_PROTO(struct xfs_scrub *sc, xfs_agnumber_t agno, 187 TP_ARGS(sc, agno, bno, error, ret_ip), 191 __field(xfs_agnumber_t, agno) 199 __entry->agno = agno; 207 __entry->agno, 251 __field(xfs_agnumber_t, agno) 258 __entry->agno = xfs_daddr_to_agno(sc->mp, daddr); [all …]
|
H A D | common.h | 37 bool xchk_process_error(struct xfs_scrub *sc, xfs_agnumber_t agno, 43 xfs_agnumber_t agno, xfs_agblock_t bno, int *error); 117 int xchk_ag_init(struct xfs_scrub *sc, xfs_agnumber_t agno, 128 xfs_agnumber_t agno, in xchk_ag_init_existing() argument 131 int error = xchk_ag_init(sc, agno, sa); in xchk_ag_init_existing() 136 int xchk_ag_read_headers(struct xfs_scrub *sc, xfs_agnumber_t agno,
|
H A D | agheader.c | 39 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_superblock_xref() local 48 error = xchk_ag_init_existing(sc, agno, &sc->sa); in xchk_superblock_xref() 49 if (!xchk_xref_process_error(sc, agno, agbno, &error)) in xchk_superblock_xref() 77 xfs_agnumber_t agno; in xchk_superblock() local 83 agno = sc->sm->sm_agno; in xchk_superblock() 84 if (agno == 0) in xchk_superblock() 92 pag = xfs_perag_get(mp, agno); in xchk_superblock() 96 error = xfs_sb_read_secondary(mp, sc->tp, agno, &bp); in xchk_superblock() 114 if (!xchk_process_error(sc, agno, XFS_SB_BLOCK(mp), &error)) in xchk_superblock() 535 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_agf() local [all …]
|
H A D | fscounters.c | 87 xfs_agnumber_t agno; in xchk_fscount_warmup() local 90 for_each_perag(mp, agno, pag) { in xchk_fscount_warmup() 265 xfs_agnumber_t agno) in xchk_fscount_btreeblks() argument 270 error = xchk_ag_init_existing(sc, agno, &sc->sa); in xchk_fscount_btreeblks() 303 xfs_agnumber_t agno; in xchk_fscount_aggregate_agcounts() local 312 for_each_perag(mp, agno, pag) { in xchk_fscount_aggregate_agcounts() 333 error = xchk_fscount_btreeblks(sc, fsc, agno); in xchk_fscount_aggregate_agcounts()
|
H A D | common.c | 68 xfs_agnumber_t agno, in __xchk_process_error() argument 91 trace_xchk_op_error(sc, agno, bno, *error, in __xchk_process_error() 101 xfs_agnumber_t agno, in xchk_process_error() argument 105 return __xchk_process_error(sc, agno, bno, error, in xchk_process_error() 112 xfs_agnumber_t agno, in xchk_xref_process_error() argument 116 return __xchk_process_error(sc, agno, bno, error, in xchk_xref_process_error() 510 xfs_agnumber_t agno, in xchk_ag_read_headers() argument 516 sa->pag = xfs_perag_get(mp, agno); in xchk_ag_read_headers() 631 xfs_agnumber_t agno, in xchk_ag_init() argument 636 error = xchk_ag_read_headers(sc, agno, sa); in xchk_ag_init() [all …]
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_trace.h | 170 __field(xfs_agnumber_t, agno) 177 __entry->agno = pag->pag_agno; 184 __entry->agno, 284 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno), 285 TP_ARGS(mp, agno), 288 __field(xfs_agnumber_t, agno) 292 __entry->agno = agno; 296 __entry->agno) 300 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno), \ 301 TP_ARGS(mp, agno)) [all …]
|
H A D | xfs_extent_busy.c | 36 new->agno = pag->pag_agno; in xfs_extent_busy_insert_list() 502 trace_xfs_extent_busy_trim(args->mp, args->agno, *bno, *len, in xfs_extent_busy_trim() 527 trace_xfs_extent_busy_clear(mp, busyp->agno, busyp->bno, in xfs_extent_busy_clear_one() 564 xfs_agnumber_t agno = NULLAGNUMBER; in xfs_extent_busy_clear() local 568 if (busyp->agno != agno) { in xfs_extent_busy_clear() 571 agno = busyp->agno; in xfs_extent_busy_clear() 572 pag = xfs_perag_get(mp, agno); in xfs_extent_busy_clear() 648 xfs_agnumber_t agno; in xfs_extent_busy_wait_all() local 650 for_each_perag(mp, agno, pag) { in xfs_extent_busy_wait_all() 676 diff = b1->agno - b2->agno; in xfs_extent_busy_ag_cmp()
|
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 | 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() 213 pag = xfs_perag_get(mp, id.agno); in xfs_growfs_data_private() 577 xfs_agnumber_t agno; in xfs_fs_reserve_ag_blocks() local 583 for_each_perag(mp, agno, pag) { in xfs_fs_reserve_ag_blocks() 605 xfs_agnumber_t agno; in xfs_fs_unreserve_ag_blocks() local 610 for_each_perag(mp, agno, pag) { in xfs_fs_unreserve_ag_blocks()
|
H A D | xfs_notify_failure.c | 116 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, fsbno); in xfs_dax_notify_ddev_failure() local 125 for (; agno <= end_agno; agno++) { in xfs_dax_notify_ddev_failure() 132 pag = xfs_perag_get(mp, agno); in xfs_dax_notify_ddev_failure() 147 if (agno == end_agno) in xfs_dax_notify_ddev_failure() 164 fsbno = XFS_AGB_TO_FSB(mp, agno + 1, 0); in xfs_dax_notify_ddev_failure()
|
H A D | xfs_drain.h | 65 xfs_agnumber_t agno); 79 #define xfs_perag_intent_get(mp, agno) xfs_perag_get((mp), (agno)) argument
|
H 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 = (item->pag->pag_agno + 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()
|
H 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() 756 xfs_agnumber_t agno = XFS_INO_TO_AGNO(mp, startino); in xfs_inobt_walk() local 759 ASSERT(agno < mp->m_sb.sb_agcount); in xfs_inobt_walk() 766 for_each_perag_from(mp, agno, pag) { in xfs_inobt_walk()
|
H A D | xfs_discard.c | 117 trace_xfs_discard_extent(mp, busyp->agno, busyp->bno, in xfs_discard_extents() 121 XFS_AGB_TO_DADDR(mp, busyp->agno, busyp->bno), in xfs_discard_extents() 373 xfs_agnumber_t agno; in xfs_ioc_trim() local 412 agno = xfs_daddr_to_agno(mp, start); in xfs_ioc_trim() 413 for_each_perag_range(mp, agno, xfs_daddr_to_agno(mp, end), pag) { in xfs_ioc_trim()
|
H A D | xfs_itable.c | 263 xfs_agnumber_t agno = XFS_INO_TO_AGNO(mp, startino); in xfs_bulkstat_already_done() local 266 return agno >= mp->m_sb.sb_agcount || in xfs_bulkstat_already_done() 267 startino != XFS_AGINO_TO_INO(mp, agno, agino); in xfs_bulkstat_already_done() 390 xfs_agnumber_t agno, in xfs_inumbers_walk() argument 395 .xi_startino = XFS_AGINO_TO_INO(mp, agno, irec->ir_startino), in xfs_inumbers_walk() 407 ic->breq->startino = XFS_AGINO_TO_INO(mp, agno, irec->ir_startino) + in xfs_inumbers_walk()
|
/openbmc/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 …]
|
H A D | jfs_discard.c | 70 int agno, agno_end; in jfs_ioc_trim() local 102 agno = BLKTOAG(start, JFS_SBI(ip->i_sb)); in jfs_ioc_trim() 104 while (agno <= agno_end) { in jfs_ioc_trim() 105 trimmed += dbDiscardAG(ip, agno, minlen); in jfs_ioc_trim() 106 agno++; in jfs_ioc_trim()
|
H A D | jfs_dmap.c | 83 static int dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb, 727 int rc, agno; in dbAlloc() local 782 agno = blkno >> bmp->db_agl2size; in dbAlloc() 793 if (atomic_read(&bmp->db_active[agno])) in dbAlloc() 827 writers = atomic_read(&bmp->db_active[agno]); in dbAlloc() 829 ((writers == 1) && (JFS_IP(ip)->active_ag != agno))) { in dbAlloc() 872 if ((rc = dbAllocAG(bmp, agno, nblocks, l2nb, results)) != -ENOSPC) in dbAlloc() 882 agno = dbNextAG(ipbmap); in dbAlloc() 888 if ((rc = dbAllocAG(bmp, agno, nblocks, l2nb, results)) == -ENOSPC) in dbAlloc() 1323 dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb, s64 * results) in dbAllocAG() argument [all …]
|
/openbmc/linux/fs/ext4/ |
H 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() 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() 189 ext4_group_t agno, ext4_grpblk_t start, in ext4_getfsmap_meta_helper() argument 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 252 fsb = (EXT4_C2B(sbi, start) + ext4_group_first_block_no(sb, agno)); in ext4_getfsmap_datadev_helper() 296 ext4_group_first_block_no(sb, agno + 1)) { in ext4_getfsmap_datadev_helper() [all …]
|