Home
last modified time | relevance | path

Searched refs:agno (Results 1 – 25 of 27) 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_sb.c1622 xfs_agnumber_t agno, in xfs_sb_read_secondary() argument
1628 ASSERT(agno != 0 && agno != NULLAGNUMBER); in xfs_sb_read_secondary()
1630 XFS_AG_DADDR(mp, agno, XFS_SB_BLOCK(mp)), in xfs_sb_read_secondary()
1633 xfs_agno_mark_sick(mp, agno, XFS_SICK_AG_SB); in xfs_sb_read_secondary()
1646 xfs_agnumber_t agno, in xfs_sb_get_secondary() argument
1652 ASSERT(agno != 0 && agno != NULLAGNUMBER); in xfs_sb_get_secondary()
1654 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.h702 #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 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_dmap.c83 static int dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb,
716 int rc, agno; in dbAlloc() local
771 agno = blkno >> bmp->db_agl2size; in dbAlloc()
782 if (atomic_read(&bmp->db_active[agno])) in dbAlloc()
816 writers = atomic_read(&bmp->db_active[agno]); in dbAlloc()
818 ((writers == 1) && (JFS_IP(ip)->active_ag != agno))) { in dbAlloc()
861 if ((rc = dbAllocAG(bmp, agno, nblocks, l2nb, results)) != -ENOSPC) in dbAlloc()
871 agno = dbNextAG(ipbmap); in dbAlloc()
877 if ((rc = dbAllocAG(bmp, agno, nblocks, l2nb, results)) == -ENOSPC) in dbAlloc()
1312 dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb, s64 * results) in dbAllocAG() argument
[all …]
H A Djfs_dmap.h301 extern s64 dbDiscardAG(struct inode *ip, int agno, s64 minlen);
/linux/fs/ext4/
H A Dfsmap.c92 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/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()
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 Dnewbt.c254 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 Dfscounters.c263 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 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()
H A Dbtree.c373 xfs_agnumber_t agno; in xchk_btree_check_block_owner() local
384 agno = xfs_daddr_to_agno(bs->cur->bc_mp, daddr); in xchk_btree_check_block_owner()
394 error = xchk_ag_init_existing(bs->sc, agno, &bs->sc->sa); in xchk_btree_check_block_owner()
H A Dagheader_repair.c46 xfs_agnumber_t agno; in xrep_superblock() local
50 agno = sc->sm->sm_agno; in xrep_superblock()
51 if (agno == 0) in xrep_superblock()
54 error = xfs_sb_get_secondary(mp, sc->tp, agno, &bp); in xrep_superblock()
/linux/fs/xfs/
H A Dxfs_filestream.c68 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()
H A Dxfs_fsops.c61 for (id->agno = nagcount - 1; in xfs_resizefs_init_new_ags()
62 id->agno >= oagcount; in xfs_resizefs_init_new_ags()
63 id->agno--, delta -= id->agsize) { in xfs_resizefs_init_new_ags()
65 if (id->agno == nagcount - 1) in xfs_resizefs_init_new_ags()
66 id->agsize = nb - (id->agno * in xfs_resizefs_init_new_ags()
211 pag = xfs_perag_get(mp, id.agno); in xfs_growfs_data_private()
H A Dxfs_itable.c292 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 Dxfs_icreate_item.h17 void xfs_icreate_log(struct xfs_trans *tp, xfs_agnumber_t agno,
H A Dxfs_ioctl.c216 if (hdr->agno >= mp->m_sb.sb_agcount) in xfs_bulk_ireq_setup()
220 breq->startino = XFS_AGINO_TO_INO(mp, hdr->agno, 0); in xfs_bulk_ireq_setup()
221 else if (XFS_INO_TO_AGNO(mp, breq->startino) < hdr->agno) in xfs_bulk_ireq_setup()
227 if (XFS_INO_TO_AGNO(mp, breq->startino) > hdr->agno) in xfs_bulk_ireq_setup()
229 } else if (hdr->agno) in xfs_bulk_ireq_setup()
H A Dxfs_health.c190 xfs_agnumber_t agno, in xfs_agno_mark_sick() argument
193 struct xfs_perag *pag = xfs_perag_get(mp, agno); in xfs_agno_mark_sick()

12