Searched refs:agno (Results 1 - 25 of 71) sorted by path

123

/linux-master/fs/jfs/
H A Djfs_discard.c70 int agno, agno_end; local
97 agno = BLKTOAG(start, JFS_SBI(ip->i_sb));
99 while (agno <= agno_end) {
100 trimmed += dbDiscardAG(ip, agno, minlen);
101 agno++;
H A Djfs_dmap.c83 static int dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb,
727 int rc, agno; local
782 agno = blkno >> bmp->db_agl2size;
793 if (atomic_read(&bmp->db_active[agno]))
827 writers = atomic_read(&bmp->db_active[agno]);
829 ((writers == 1) && (JFS_IP(ip)->active_ag != agno))) {
872 if ((rc = dbAllocAG(bmp, agno, nblocks, l2nb, results)) != -ENOSPC)
882 agno = dbNextAG(ipbmap);
888 if ((rc = dbAllocAG(bmp, agno, nblocks, l2nb, results)) == -ENOSPC)
1309 * agno
1323 dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb, s64 * results) argument
1576 dbDiscardAG(struct inode *ip, int agno, s64 minlen) argument
2140 int dbitno, word, rembits, nb, nwords, wbitno, nw, agno; local
2287 int dbitno, word, rembits, nb, nwords, wbitno, nw, agno; local
3242 int dbitno, word, rembits, nb, nwords, wbitno, agno; local
3371 int agno, l2agsize, oldl2agsize; local
[all...]
H A Djfs_dmap.h301 extern s64 dbDiscardAG(struct inode *ip, int agno, s64 minlen);
H A Djfs_imap.c57 #define AG_LOCK(imap,agno) mutex_lock(&imap->im_aglock[agno])
58 #define AG_UNLOCK(imap,agno) mutex_unlock(&imap->im_aglock[agno])
848 int iagno, ino, extno, bitno, sword, agno; local
882 agno = BLKTOAG(JFS_IP(ip)->agstart, JFS_SBI(ip->i_sb));
886 AG_LOCK(imap, agno);
897 AG_UNLOCK(imap, agno);
917 AG_UNLOCK(imap, agno);
926 if (imap->im_agctl[agno]
1323 int nwords, rem, i, agno, dn_numag; local
1631 diAllocAG(struct inomap * imap, int agno, bool dir, struct inode *ip) argument
1701 diAllocAny(struct inomap * imap, int agno, bool dir, struct inode *ip) argument
1765 diAllocIno(struct inomap * imap, int agno, struct inode *ip) argument
1889 diAllocExt(struct inomap * imap, int agno, struct inode *ip) argument
2008 int extno, bitno, agno, sword, rc; local
2154 int agno, iagno, fwd, back, freei = 0, sword, rc; local
2437 diNewIAG(struct inomap * imap, int *iagnop, int agno, struct metapage ** mpp) argument
[all...]
/linux-master/fs/ext4/
H A Dfsmap.c91 ext4_group_t agno; local
138 &agno, &cno);
139 trace_ext4_fsmap_mapping(sb, info->gfi_dev, agno,
162 ext4_get_group_no_and_offset(sb, rec_fsblk, &agno, &cno);
163 trace_ext4_fsmap_mapping(sb, info->gfi_dev, agno, EXT4_C2B(sbi, cno),
190 ext4_group_t agno, ext4_grpblk_t start,
202 fsb = (EXT4_C2B(sbi, start) + ext4_group_first_block_no(sb, agno));
246 ext4_group_first_block_no(sb, agno + 1)) {
315 ext4_group_t agno,
319 ext4_fsblk_t fsb = ext4_group_first_block_no(sb, agno);
189 ext4_getfsmap_datadev_helper(struct super_block *sb, ext4_group_t agno, ext4_grpblk_t start, ext4_grpblk_t len, void *priv) argument
314 ext4_getfsmap_find_sb(struct super_block *sb, ext4_group_t agno, struct list_head *meta_list) argument
412 ext4_group_t agno; local
[all...]
H A Dmballoc.h251 ext4_group_t agno,
259 ext4_group_t agno,
/linux-master/fs/xfs/libxfs/
H A Dxfs_ag.c44 xfs_agnumber_t agno)
49 pag = radix_tree_lookup(&mp->m_perag_tree, agno);
115 xfs_agnumber_t agno)
120 pag = radix_tree_lookup(&mp->m_perag_tree, agno);
256 xfs_agnumber_t agno; local
258 for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) {
260 pag = radix_tree_delete(&mp->m_perag_tree, agno);
281 xfs_agnumber_t agno,
42 xfs_perag_get( struct xfs_mount *mp, xfs_agnumber_t agno) argument
113 xfs_perag_grab( struct xfs_mount *mp, xfs_agnumber_t agno) argument
279 __xfs_ag_block_count( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agnumber_t agcount, xfs_rfsblock_t dblocks) argument
293 xfs_ag_block_count( struct xfs_mount *mp, xfs_agnumber_t agno) argument
327 xfs_agino_range( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agino_t *first, xfs_agino_t *last) argument
[all...]
H A Dxfs_ag.h154 int xfs_initialize_perag_data(struct xfs_mount *mp, xfs_agnumber_t agno);
158 struct xfs_perag *xfs_perag_get(struct xfs_mount *mp, xfs_agnumber_t agno);
159 struct xfs_perag *xfs_perag_get_tag(struct xfs_mount *mp, xfs_agnumber_t agno,
173 xfs_agblock_t xfs_ag_block_count(struct xfs_mount *mp, xfs_agnumber_t agno);
174 void xfs_agino_range(struct xfs_mount *mp, xfs_agnumber_t agno,
229 xfs_ag_contains_log(struct xfs_mount *mp, xfs_agnumber_t agno) argument
232 agno == XFS_FSB_TO_AGNO(mp, mp->m_sb.sb_logstart);
241 xfs_agnumber_t *agno,
246 *agno = pag->pag_agno + 1;
248 while (*agno <
239 xfs_perag_next( struct xfs_perag *pag, xfs_agnumber_t *agno, xfs_agnumber_t end_agno) argument
277 xfs_perag_next_wrap( struct xfs_perag *pag, xfs_agnumber_t *agno, xfs_agnumber_t stop_agno, xfs_agnumber_t restart_agno, xfs_agnumber_t wrap_agno) argument
330 xfs_agblock_t agno; /* ag to init */ member in struct:aghdr_init_data
[all...]
H A Dxfs_ag_resv.h44 xfs_agnumber_t agno)
50 pag = xfs_perag_get(mp, agno);
42 xfs_ag_resv_rmapbt_alloc( struct xfs_mount *mp, xfs_agnumber_t agno) argument
H A Dxfs_alloc.c1162 XFS_AGB_TO_DADDR(args->mp, args->agno, fbno),
1211 * Allocate a variable extent at exactly agno/bno.
1570 * Allocate a variable extent near bno in the allocation group agno.
1685 * Allocate a variable extent anywhere in the allocation group agno.
1935 * Free the extent starting at agno/bno for length.
1941 xfs_agnumber_t agno,
2255 trace_xfs_free_extent(mp, agno, bno, len, type, haveleft, haveright);
2260 trace_xfs_free_extent(mp, agno, bno, len, type, -1, -1);
2430 xfs_agnumber_t agno,
2438 error = xfs_free_ag_extent(tp, agbp, agno, agbn
1938 xfs_free_ag_extent( struct xfs_trans *tp, struct xfs_buf *agbp, xfs_agnumber_t agno, xfs_agblock_t bno, xfs_extlen_t len, const struct xfs_owner_info *oinfo, enum xfs_ag_resv_type type) argument
2428 xfs_free_agfl_block( struct xfs_trans *tp, xfs_agnumber_t agno, xfs_agblock_t agbno, struct xfs_buf *agbp, struct xfs_owner_info *oinfo) argument
2552 xfs_defer_agfl_block( struct xfs_trans *tp, xfs_agnumber_t agno, xfs_agblock_t agbno, struct xfs_owner_info *oinfo) argument
2599 xfs_agnumber_t agno; local
3610 xfs_alloc_vextent_this_ag( struct xfs_alloc_arg *args, xfs_agnumber_t agno) argument
3670 xfs_agnumber_t agno; local
[all...]
H A Dxfs_alloc.h38 struct xfs_perag *pag; /* per-ag struct for this agno */
40 xfs_agnumber_t agno; /* allocation group number */ member in struct:xfs_alloc_arg
104 int xfs_alloc_vextent_this_ag(struct xfs_alloc_arg *args, xfs_agnumber_t agno);
H A Dxfs_bmap.c3323 xfs_agnumber_t agno, startag; local
3338 for_each_perag_wrap(mp, startag, agno, pag) {
H A Dxfs_btree.c1020 xfs_agnumber_t agno = cur->bc_ag.pag->pag_agno; local
1027 XFS_AGB_TO_DADDR(mp, agno, left),
1034 XFS_AGB_TO_DADDR(mp, agno, right),
H A Dxfs_format.h670 #define XFS_AGB_TO_FSB(mp,agno,agbno) \
671 (((xfs_fsblock_t)(agno) << (mp)->m_sb.sb_agblklog) | (agbno))
676 #define XFS_AGB_TO_DADDR(mp,agno,agbno) \
678 (xfs_fsblock_t)(agno) * (mp)->m_sb.sb_agblocks + (agbno)))
679 #define XFS_AG_DADDR(mp,agno,d) (XFS_AGB_TO_DADDR(mp, agno, 0) + (d))
H A Dxfs_fs.h461 uint32_t agno; /* I: see comment for IREQ_AGNO */ member in struct:xfs_bulk_ireq
466 * Only return results from the specified @agno. If @ino is zero, start
467 * with the first inode of @agno.
H A Dxfs_health.h196 void xfs_agno_mark_sick(struct xfs_mount *mp, xfs_agnumber_t agno,
H A Dxfs_ialloc.c299 xfs_agnumber_t agno,
341 ino = XFS_AGINO_TO_INO(mp, agno, XFS_AGB_TO_AGINO(mp, agbno));
352 xfs_icreate_log(tp, agno, agbno, icount,
361 d = XFS_AGB_TO_DADDR(mp, agno, agbno +
1823 xfs_agnumber_t agno; local
1882 for_each_perag_wrap_at(mp, start_agno, mp->m_maxagi, agno, pag) {
1921 xfs_agnumber_t agno,
1936 XFS_AGB_TO_FSB(mp, agno, sagbno),
1983 XFS_AGB_TO_FSB(mp, agno, agbno), contigblk,
2266 xfs_warn(mp, "%s: agno !
294 xfs_ialloc_inode_init( struct xfs_mount *mp, struct xfs_trans *tp, struct list_head *buffer_list, int icount, xfs_agnumber_t agno, xfs_agblock_t agbno, xfs_agblock_t length, unsigned int gen) argument
1919 xfs_difree_inode_chunk( struct xfs_trans *tp, xfs_agnumber_t agno, struct xfs_inobt_rec_incore *rec) argument
[all...]
H A Dxfs_ialloc.h89 xfs_agnumber_t agno, xfs_agblock_t agbno,
H A Dxfs_refcount_btree.c85 ASSERT(args.agno == cur->bc_ag.pag->pag_agno);
H A Dxfs_rmap.c2812 xfs_agnumber_t agno,
2822 bmap.br_startblock = XFS_AGB_TO_FSB(tp->t_mountp, agno, bno);
2834 xfs_agnumber_t agno,
2844 bmap.br_startblock = XFS_AGB_TO_FSB(tp->t_mountp, agno, bno);
2810 xfs_rmap_alloc_extent( struct xfs_trans *tp, xfs_agnumber_t agno, xfs_agblock_t bno, xfs_extlen_t len, uint64_t owner) argument
2832 xfs_rmap_free_extent( struct xfs_trans *tp, xfs_agnumber_t agno, xfs_agblock_t bno, xfs_extlen_t len, uint64_t owner) argument
H A Dxfs_rmap.h180 void xfs_rmap_alloc_extent(struct xfs_trans *tp, xfs_agnumber_t agno,
182 void xfs_rmap_free_extent(struct xfs_trans *tp, xfs_agnumber_t agno,
H A Dxfs_rmap_btree.c662 xfs_agnumber_t agno)
664 xfbt->owner = agno;
658 xfs_rmapbt_mem_init( struct xfs_mount *mp, struct xfbtree *xfbt, struct xfs_buftarg *btp, xfs_agnumber_t agno) argument
H A Dxfs_rmap_btree.h69 struct xfs_buftarg *btp, xfs_agnumber_t agno);
H A Dxfs_sb.c1093 xfs_agnumber_t agno = 1; local
1099 for_each_perag_from(mp, agno, pag) {
1129 if (agno % 16)
1146 error, agno);
1284 xfs_agnumber_t agno,
1290 ASSERT(agno != 0 && agno != NULLAGNUMBER);
1292 XFS_AG_DADDR(mp, agno, XFS_SB_BLOCK(mp)),
1295 xfs_agno_mark_sick(mp, agno, XFS_SICK_AG_SB);
1308 xfs_agnumber_t agno,
1281 xfs_sb_read_secondary( struct xfs_mount *mp, struct xfs_trans *tp, xfs_agnumber_t agno, struct xfs_buf **bpp) argument
1305 xfs_sb_get_secondary( struct xfs_mount *mp, struct xfs_trans *tp, xfs_agnumber_t agno, struct xfs_buf **bpp) argument
[all...]
H A Dxfs_sb.h32 struct xfs_trans *tp, xfs_agnumber_t agno,
35 struct xfs_trans *tp, xfs_agnumber_t agno,

Completed in 314 milliseconds

123