Home
last modified time | relevance | path

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

12

/fs/xfs/
Dxfs_discard.c38 xfs_agnumber_t agno, in xfs_trim_extents() argument
51 pag = xfs_perag_get(mp, agno); in xfs_trim_extents()
60 error = xfs_alloc_read_agf(mp, NULL, agno, 0, &agbp); in xfs_trim_extents()
64 cur = xfs_allocbt_init_cursor(mp, NULL, agbp, agno, XFS_BTNUM_CNT); in xfs_trim_extents()
95 dbno = XFS_AGB_TO_DADDR(mp, agno, fbno); in xfs_trim_extents()
102 trace_xfs_discard_toosmall(mp, agno, fbno, flen); in xfs_trim_extents()
112 trace_xfs_discard_exclude(mp, agno, fbno, flen); in xfs_trim_extents()
120 if (xfs_extent_busy_search(mp, agno, fbno, flen)) { in xfs_trim_extents()
121 trace_xfs_discard_busy(mp, agno, fbno, flen); in xfs_trim_extents()
125 trace_xfs_discard_extent(mp, agno, fbno, flen); in xfs_trim_extents()
[all …]
Dxfs_extent_busy.c37 xfs_agnumber_t agno, in xfs_extent_busy_insert() argument
55 trace_xfs_extent_busy_enomem(tp->t_mountp, agno, bno, len); in xfs_extent_busy_insert()
60 new->agno = agno; in xfs_extent_busy_insert()
67 trace_xfs_extent_busy(tp->t_mountp, agno, bno, len); in xfs_extent_busy_insert()
69 pag = xfs_perag_get(tp->t_mountp, new->agno); in xfs_extent_busy_insert()
107 xfs_agnumber_t agno, in xfs_extent_busy_search() argument
116 pag = xfs_perag_get(mp, agno); in xfs_extent_busy_search()
307 xfs_agnumber_t agno, in xfs_extent_busy_reuse() argument
317 pag = xfs_perag_get(mp, agno); in xfs_extent_busy_reuse()
521 trace_xfs_extent_busy_trim(args->mp, args->agno, bno, len, in xfs_extent_busy_trim()
[all …]
Dxfs_fsops.c151 xfs_agnumber_t agno; in xfs_growfs_data_private() local
216 for (agno = nagcount - 1; agno >= oagcount; agno--, new -= agsize) { in xfs_growfs_data_private()
223 XFS_AG_DADDR(mp, agno, XFS_AGF_DADDR(mp)), in xfs_growfs_data_private()
234 agf->agf_seqno = cpu_to_be32(agno); in xfs_growfs_data_private()
235 if (agno == nagcount - 1) in xfs_growfs_data_private()
238 (agno * (xfs_rfsblock_t)mp->m_sb.sb_agblocks); in xfs_growfs_data_private()
264 XFS_AG_DADDR(mp, agno, XFS_AGFL_DADDR(mp)), in xfs_growfs_data_private()
275 agfl->agfl_seqno = cpu_to_be32(agno); in xfs_growfs_data_private()
292 XFS_AG_DADDR(mp, agno, XFS_AGI_DADDR(mp)), in xfs_growfs_data_private()
303 agi->agi_seqno = cpu_to_be32(agno); in xfs_growfs_data_private()
[all …]
Dxfs_itable.c178 xfs_agnumber_t agno, in xfs_bulkstat_ichunk_ra() argument
195 xfs_btree_reada_bufs(mp, agno, agbno, blks_per_cluster, in xfs_bulkstat_ichunk_ra()
276 xfs_agnumber_t agno, in xfs_bulkstat_ag_ichunk() argument
303 error = formatter(mp, XFS_AGINO_TO_INO(mp, agno, agino), in xfs_bulkstat_ag_ichunk()
352 xfs_agnumber_t agno; /* allocation group number */ in xfs_bulkstat() local
363 agno = XFS_INO_TO_AGNO(mp, *lastinop); in xfs_bulkstat()
365 if (agno >= mp->m_sb.sb_agcount || in xfs_bulkstat()
366 *lastinop != XFS_AGINO_TO_INO(mp, agno, agino)) { in xfs_bulkstat()
389 while (agno < mp->m_sb.sb_agcount) { in xfs_bulkstat()
396 error = xfs_ialloc_read_agi(mp, NULL, agno, &agbp); in xfs_bulkstat()
[all …]
Dxfs_trace.h103 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, int refcount,
105 TP_ARGS(mp, agno, refcount, caller_ip),
108 __field(xfs_agnumber_t, agno)
114 __entry->agno = agno;
120 __entry->agno,
127 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, int refcount, \
129 TP_ARGS(mp, agno, refcount, caller_ip))
139 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno),
140 TP_ARGS(mp, agno),
143 __field(xfs_agnumber_t, agno)
[all …]
Dxfs_extent_busy.h37 xfs_agnumber_t agno; member
46 xfs_extent_busy_insert(struct xfs_trans *tp, xfs_agnumber_t agno,
54 xfs_extent_busy_search(struct xfs_mount *mp, xfs_agnumber_t agno,
58 xfs_extent_busy_reuse(struct xfs_mount *mp, xfs_agnumber_t agno,
Dxfs_filestream.c84 xfs_agnumber_t agno) in xfs_filestream_peek_ag() argument
89 pag = xfs_perag_get(mp, agno); in xfs_filestream_peek_ag()
98 xfs_agnumber_t agno) in xfs_filestream_get_ag() argument
103 pag = xfs_perag_get(mp, agno); in xfs_filestream_get_ag()
112 xfs_agnumber_t agno) in xfs_filestream_put_ag() argument
116 pag = xfs_perag_get(mp, agno); in xfs_filestream_put_ag()
Dxfs_log_recover.c3045 xfs_agnumber_t agno; in xlog_recover_do_icreate_pass2() local
3067 agno = be32_to_cpu(icl->icl_ag); in xlog_recover_do_icreate_pass2()
3068 if (agno >= mp->m_sb.sb_agcount) { in xlog_recover_do_icreate_pass2()
3124 daddr = XFS_AGB_TO_DADDR(mp, agno, in xlog_recover_do_icreate_pass2()
3150 return xfs_ialloc_inode_init(mp, NULL, buffer_list, count, agno, agbno, in xlog_recover_do_icreate_pass2()
3961 xfs_agnumber_t agno, in xlog_recover_clear_agi_bucket() argument
3975 error = xfs_read_agi(mp, tp, agno, &agibp); in xlog_recover_clear_agi_bucket()
3995 xfs_warn(mp, "%s: failed to clear agi %d. Continuing.", __func__, agno); in xlog_recover_clear_agi_bucket()
4002 xfs_agnumber_t agno, in xlog_recover_process_one_iunlink() argument
4012 ino = XFS_AGINO_TO_INO(mp, agno, agino); in xlog_recover_process_one_iunlink()
[all …]
Dxfs_icreate_item.c162 xfs_agnumber_t agno, in xfs_icreate_log() argument
178 icp->ic_format.icl_ag = cpu_to_be32(agno); in xfs_icreate_log()
Dxfs_icreate_item.h29 void xfs_icreate_log(struct xfs_trans *tp, xfs_agnumber_t agno,
Dxfs_mount.c148 xfs_agnumber_t agno; in xfs_free_perag() local
151 for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { in xfs_free_perag()
153 pag = radix_tree_delete(&mp->m_perag_tree, agno); in xfs_free_perag()
Dxfs_filestream.h30 int xfs_filestream_peek_ag(struct xfs_mount *mp, xfs_agnumber_t agno);
/fs/xfs/libxfs/
Dxfs_ialloc.c169 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); in xfs_inobt_insert() local
174 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, btnum); in xfs_inobt_insert()
255 xfs_agnumber_t agno, in xfs_ialloc_inode_init() argument
298 ino = XFS_AGINO_TO_INO(mp, agno, in xfs_ialloc_inode_init()
310 xfs_icreate_log(tp, agno, agbno, icount, in xfs_ialloc_inode_init()
319 d = XFS_AGB_TO_DADDR(mp, agno, agbno + (j * blks_per_cluster)); in xfs_ialloc_inode_init()
520 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); in xfs_inobt_insert_sprec() local
525 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, btnum); in xfs_inobt_insert_sprec()
563 trace_xfs_irec_merge_pre(mp, agno, rec.ir_startino, in xfs_inobt_insert_sprec()
570 trace_xfs_irec_merge_post(mp, agno, nrec->ir_startino, in xfs_inobt_insert_sprec()
[all …]
Dxfs_alloc.c550 xfs_agnumber_t agno, /* allocation group number */ in xfs_alloc_read_agfl() argument
556 ASSERT(agno != NULLAGNUMBER); in xfs_alloc_read_agfl()
559 XFS_AG_DADDR(mp, agno, XFS_AGFL_DADDR(mp)), in xfs_alloc_read_agfl()
646 ASSERT(!xfs_extent_busy_search(args->mp, args->agno, in xfs_alloc_ag_vextent()
688 args->agno, XFS_BTNUM_BNO); in xfs_alloc_ag_vextent_exact()
746 args->agno, XFS_BTNUM_CNT); in xfs_alloc_ag_vextent_exact()
930 args->agno, XFS_BTNUM_CNT); in xfs_alloc_ag_vextent_near()
1060 args->agbp, args->agno, XFS_BTNUM_BNO); in xfs_alloc_ag_vextent_near()
1089 args->agno, XFS_BTNUM_BNO); in xfs_alloc_ag_vextent_near()
1305 args->agno, XFS_BTNUM_CNT); in xfs_alloc_ag_vextent_size()
[all …]
Dxfs_ialloc.h135 xfs_agnumber_t agno, /* allocation group number */
146 xfs_agnumber_t agno); /* allocation group number */
165 xfs_agnumber_t agno, xfs_agblock_t agbno,
169 xfs_agnumber_t agno, struct xfs_buf **bpp);
Dxfs_alloc.h106 xfs_agnumber_t agno; /* allocation group number */ member
174 xfs_agnumber_t agno, /* allocation group number */
195 xfs_agnumber_t agno, /* allocation group number */
237 xfs_agnumber_t agno, int flags, struct xfs_buf **bpp);
Dxfs_ialloc_btree.c50 cur->bc_private.a.agbp, cur->bc_private.a.agno, in xfs_inobt_dup_cursor()
99 args.fsbno = XFS_AGB_TO_FSB(args.mp, cur->bc_private.a.agno, sbno); in xfs_inobt_alloc_block()
193 ASSERT(cur->bc_private.a.agno == be32_to_cpu(agi->agi_seqno)); in xfs_inobt_init_ptr_from_cur()
205 ASSERT(cur->bc_private.a.agno == be32_to_cpu(agi->agi_seqno)); in xfs_finobt_init_ptr_from_cur()
386 xfs_agnumber_t agno, /* allocation group number */ in xfs_inobt_init_cursor() argument
411 cur->bc_private.a.agno = agno; in xfs_inobt_init_cursor()
Dxfs_alloc_btree.c41 cur->bc_private.a.agbp, cur->bc_private.a.agno, in xfs_allocbt_dup_cursor()
93 xfs_extent_busy_reuse(cur->bc_mp, cur->bc_private.a.agno, bno, 1, false); in xfs_allocbt_alloc_block()
245 ASSERT(cur->bc_private.a.agno == be32_to_cpu(agf->agf_seqno)); in xfs_allocbt_init_ptr_from_cur()
458 xfs_agnumber_t agno, /* allocation group number */ in xfs_allocbt_init_cursor() argument
482 cur->bc_private.a.agno = agno; in xfs_allocbt_init_cursor()
Dxfs_btree.h221 xfs_agnumber_t agno; /* ag number */ member
307 xfs_agnumber_t agno, /* allocation group number */
363 xfs_agnumber_t agno, /* allocation group number */
Dxfs_dir2.c198 xfs_agnumber_t agno; in xfs_dir_ino_validate() local
202 agno = XFS_INO_TO_AGNO(mp, ino); in xfs_dir_ino_validate()
207 agno < mp->m_sb.sb_agcount && in xfs_dir_ino_validate()
211 XFS_AGINO_TO_INO(mp, agno, agino) == ino; in xfs_dir_ino_validate()
Dxfs_format.h793 #define XFS_AGB_TO_FSB(mp,agno,agbno) \ argument
794 (((xfs_fsblock_t)(agno) << (mp)->m_sb.sb_agblklog) | (agbno))
799 #define XFS_AGB_TO_DADDR(mp,agno,agbno) \ argument
801 (xfs_fsblock_t)(agno) * (mp)->m_sb.sb_agblocks + (agbno)))
802 #define XFS_AG_DADDR(mp,agno,d) (XFS_AGB_TO_DADDR(mp, agno, 0) + (d)) argument
Dxfs_btree.c585 xfs_agnumber_t agno, /* allocation group number */ in xfs_btree_get_bufs() argument
591 ASSERT(agno != NULLAGNUMBER); in xfs_btree_get_bufs()
593 d = XFS_AGB_TO_DADDR(mp, agno, agbno); in xfs_btree_get_bufs()
767 xfs_agnumber_t agno, /* allocation group number */ in xfs_btree_reada_bufs() argument
774 ASSERT(agno != NULLAGNUMBER); in xfs_btree_reada_bufs()
776 d = XFS_AGB_TO_DADDR(mp, agno, agbno); in xfs_btree_reada_bufs()
817 xfs_btree_reada_bufs(cur->bc_mp, cur->bc_private.a.agno, in xfs_btree_readahead_sblock()
823 xfs_btree_reada_bufs(cur->bc_mp, cur->bc_private.a.agno, in xfs_btree_readahead_sblock()
872 ASSERT(cur->bc_private.a.agno != NULLAGNUMBER); in xfs_btree_ptr_to_daddr()
875 return XFS_AGB_TO_DADDR(cur->bc_mp, cur->bc_private.a.agno, in xfs_btree_ptr_to_daddr()
[all …]
/fs/jfs/
Djfs_imap.c70 #define AG_LOCK(imap,agno) mutex_lock(&imap->im_aglock[agno]) argument
71 #define AG_UNLOCK(imap,agno) mutex_unlock(&imap->im_aglock[agno]) argument
869 int iagno, ino, extno, bitno, sword, agno; in diFree() local
903 agno = BLKTOAG(JFS_IP(ip)->agstart, JFS_SBI(ip->i_sb)); in diFree()
907 AG_LOCK(imap, agno); in diFree()
918 AG_UNLOCK(imap, agno); in diFree()
938 AG_UNLOCK(imap, agno); in diFree()
947 if (imap->im_agctl[agno].numfree > imap->im_agctl[agno].numinos) { in diFree()
950 AG_UNLOCK(imap, agno); in diFree()
959 imap->im_agctl[agno].numfree < 96 || in diFree()
[all …]
Djfs_discard.c85 int agno, agno_end; in jfs_ioc_trim() local
112 agno = BLKTOAG(start, JFS_SBI(ip->i_sb)); in jfs_ioc_trim()
114 while (agno <= agno_end) { in jfs_ioc_trim()
115 trimmed += dbDiscardAG(ip, agno, minlen); in jfs_ioc_trim()
116 agno++; in jfs_ioc_trim()
Djfs_dmap.c96 static int dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb,
702 int rc, agno; in dbAlloc() local
757 agno = blkno >> bmp->db_agl2size; in dbAlloc()
768 if (atomic_read(&bmp->db_active[agno])) in dbAlloc()
802 writers = atomic_read(&bmp->db_active[agno]); in dbAlloc()
804 ((writers == 1) && (JFS_IP(ip)->active_ag != agno))) { in dbAlloc()
847 if ((rc = dbAllocAG(bmp, agno, nblocks, l2nb, results)) != -ENOSPC) in dbAlloc()
857 agno = dbNextAG(ipbmap); in dbAlloc()
863 if ((rc = dbAllocAG(bmp, agno, nblocks, l2nb, results)) == -ENOSPC) in dbAlloc()
1366 dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb, s64 * results) in dbAllocAG() argument
[all …]

12