Home
last modified time | relevance | path

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

12

/linux/fs/xfs/libxfs/
H A Dxfs_ag.h141 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 Dxfs_ag.c130 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 Dxfs_sb.h35 struct xfs_trans *tp, xfs_agnumber_t agno,
38 struct xfs_trans *tp, xfs_agnumber_t agno,
H A Dxfs_alloc.c2960 targs.agno = args->agno; in xfs_alloc_fix_freelist()
3516 if (args->agno != NULLAGNUMBER && *minimum_agno > args->agno) { in xfs_alloc_vextent_check_args()
3540 args->pag = xfs_perag_get(args->mp, args->agno); in xfs_alloc_vextent_prepare_ag()
3596 args->agno > minimum_agno)) in xfs_alloc_vextent_finish()
3597 args->tp->t_highest_agno = args->agno; in xfs_alloc_vextent_finish()
3661 xfs_agnumber_t agno) in xfs_alloc_vextent_this_ag() argument
3668 ASSERT(pag_agno(args->pag) == agno); in xfs_alloc_vextent_this_ag()
3670 args->agno = agno; in xfs_alloc_vextent_this_ag()
3718 xfs_agnumber_t agno; in xfs_alloc_vextent_iterate_ags() local
3725 mp->m_sb.sb_agcount, agno, args->pag) { in xfs_alloc_vextent_iterate_ags()
[all …]
H A Dxfs_sb.c1540 xfs_agnumber_t agno, in xfs_sb_read_secondary() argument
1546 ASSERT(agno != 0 && agno != NULLAGNUMBER); in xfs_sb_read_secondary()
1548 XFS_AG_DADDR(mp, agno, XFS_SB_BLOCK(mp)), in xfs_sb_read_secondary()
1551 xfs_agno_mark_sick(mp, agno, XFS_SICK_AG_SB); in xfs_sb_read_secondary()
1564 xfs_agnumber_t agno, in xfs_sb_get_secondary() argument
1570 ASSERT(agno != 0 && agno != NULLAGNUMBER); in xfs_sb_get_secondary()
1572 XFS_AG_DADDR(mp, agno, XFS_SB_BLOCK(mp)), in xfs_sb_get_secondary()
H A Dxfs_alloc.h40 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 Dxfs_format.h695 #define XFS_AGB_TO_FSB(mp,agno,agbno) \ argument
696 (((xfs_fsblock_t)(agno) << (mp)->m_sb.sb_agblklog) | (agbno))
701 #define XFS_AGB_TO_DADDR(mp,agno,agbno) \ argument
703 (xfs_fsblock_t)(agno) * (mp)->m_sb.sb_agblocks + (agbno)))
704 #define XFS_AG_DADDR(mp,agno,d) (XFS_AGB_TO_DADDR(mp, agno, 0) + (d)) argument
H A Dxfs_rmap_btree.h70 struct xfs_buftarg *btp, xfs_agnumber_t agno);
H A Dxfs_ialloc.h92 xfs_agnumber_t agno, xfs_agblock_t agbno,
/linux/fs/jfs/
H 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
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 Djfs_discard.c70 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 Djfs_dmap.c83 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 …]
/linux/fs/xfs/
H A Dxfs_icreate_item.c92 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 Dxfs_trace.h197 __field(xfs_agnumber_t, agno)
204 __entry->agno = pag_agno(pag);
212 __entry->agno,
235 __field(xfs_agnumber_t, agno)
243 __entry->agno = xg->xg_gno;
251 __entry->agno,
352 __field(xfs_agnumber_t, agno)
356 __entry->agno = pag_agno(pag);
360 __entry->agno)
717 __field(xfs_agnumber_t, agno)
[all …]
H A Dxfs_fsops.c57 for (id->agno = nagcount - 1; in xfs_resizefs_init_new_ags()
58 id->agno >= oagcount; in xfs_resizefs_init_new_ags()
59 id->agno--, delta -= id->agsize) { in xfs_resizefs_init_new_ags()
61 if (id->agno == nagcount - 1) in xfs_resizefs_init_new_ags()
62 id->agsize = nb - (id->agno * in xfs_resizefs_init_new_ags()
220 pag = xfs_perag_get(mp, id.agno); in xfs_growfs_data_private()
H A Dxfs_icreate_item.h17 void xfs_icreate_log(struct xfs_trans *tp, xfs_agnumber_t agno,
/linux/fs/xfs/scrub/
H A Dtrace.h157 __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 Dagheader.c40 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()
105 xfs_agnumber_t agno; in xchk_superblock() local
111 agno = sc->sm->sm_agno; in xchk_superblock()
112 if (agno == 0) in xchk_superblock()
120 pag = xfs_perag_get(mp, agno); in xchk_superblock()
124 error = xfs_sb_read_secondary(mp, sc->tp, agno, &bp); in xchk_superblock()
142 if (!xchk_process_error(sc, agno, XFS_SB_BLOCK(mp), &error)) in xchk_superblock()
600 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_agf() local
[all …]
H A Dnewbt.c245 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()
H A Dcommon.h13 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 Dcommon.c79 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 Dinode.c98 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()
726 xfs_agnumber_t agno; in xchk_inode_xref() local
733 agno = XFS_INO_TO_AGNO(sc->mp, ino); in xchk_inode_xref()
736 error = xchk_ag_init_existing(sc, agno, &sc->sa); in xchk_inode_xref()
737 if (!xchk_xref_process_error(sc, agno, agbno, &error)) in xchk_inode_xref()
H A Dreap.c588 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(sc->mp, fsbno); in xreap_fsmeta_extent() local
601 sc->sa.pag = xfs_perag_get(sc->mp, agno); in xreap_fsmeta_extent()
1227 xfs_agnumber_t agno; in xreap_ifork_extent() local
1235 agno = XFS_FSB_TO_AGNO(sc->mp, imap->br_startblock); in xreap_ifork_extent()
1236 sc->sa.pag = xfs_perag_get(sc->mp, agno); in xreap_ifork_extent()
H A Dfscounters.c262 xfs_agnumber_t agno) in xchk_fscount_btreeblks() argument
267 error = xchk_ag_init_existing(sc, agno, &sc->sa); in xchk_fscount_btreeblks()
H A Dcow_repair.c247 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()

12