Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_types.c19 xfs_agnumber_t agno) in xfs_ag_block_count() argument
21 ASSERT(agno < mp->m_sb.sb_agcount); in xfs_ag_block_count()
23 if (agno < mp->m_sb.sb_agcount - 1) in xfs_ag_block_count()
25 return mp->m_sb.sb_dblocks - (agno * mp->m_sb.sb_agblocks); in xfs_ag_block_count()
35 xfs_agnumber_t agno, in xfs_verify_agbno() argument
40 eoag = xfs_ag_block_count(mp, agno); in xfs_verify_agbno()
57 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, fsbno); in xfs_verify_fsbno() local
59 if (agno >= mp->m_sb.sb_agcount) in xfs_verify_fsbno()
61 return xfs_verify_agbno(mp, agno, XFS_FSB_TO_AGBNO(mp, fsbno)); in xfs_verify_fsbno()
68 xfs_agnumber_t agno, in xfs_agino_range() argument
[all …]
Dxfs_refcount.c49 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_ag.agno, bno, in xfs_refcount_lookup_le()
66 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_ag.agno, bno, in xfs_refcount_lookup_ge()
83 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_ag.agno, bno, in xfs_refcount_lookup_eq()
111 xfs_agnumber_t agno = cur->bc_ag.agno; in xfs_refcount_get_rec() local
122 agno = cur->bc_ag.agno; in xfs_refcount_get_rec()
137 if (!xfs_verify_agbno(mp, agno, realstart)) in xfs_refcount_get_rec()
141 if (!xfs_verify_agbno(mp, agno, realstart + irec->rc_blockcount - 1)) in xfs_refcount_get_rec()
147 trace_xfs_refcount_get(cur->bc_mp, cur->bc_ag.agno, irec); in xfs_refcount_get_rec()
152 "Refcount BTree record corruption in AG %d detected!", agno); in xfs_refcount_get_rec()
172 trace_xfs_refcount_update(cur->bc_mp, cur->bc_ag.agno, irec); in xfs_refcount_update()
[all …]
Dxfs_ag.c53 id->agno == XFS_FSB_TO_AGNO(mp, mp->m_sb.sb_logstart); in is_log_ag()
65 xfs_btree_init_block(mp, bp, id->type, 0, 0, id->agno); in xfs_btroot_init()
132 xfs_btree_init_block(mp, bp, XFS_BTNUM_BNO, 0, 1, id->agno); in xfs_bnoroot_init()
142 xfs_btree_init_block(mp, bp, XFS_BTNUM_CNT, 0, 1, id->agno); in xfs_cntroot_init()
158 xfs_btree_init_block(mp, bp, XFS_BTNUM_RMAP, 0, 4, id->agno); in xfs_rmaproot_init()
251 agf->agf_seqno = cpu_to_be32(id->agno); in xfs_agfblock_init()
300 agfl->agfl_seqno = cpu_to_be32(id->agno); in xfs_agflblock_init()
320 agi->agi_seqno = cpu_to_be32(id->agno); in xfs_agiblock_init()
393 .daddr = XFS_AG_DADDR(mp, id->agno, XFS_SB_DADDR), in xfs_ag_init_headers()
400 .daddr = XFS_AG_DADDR(mp, id->agno, XFS_AGF_DADDR(mp)), in xfs_ag_init_headers()
[all …]
Dxfs_ialloc.c108 xfs_agnumber_t agno = cur->bc_ag.agno; in xfs_inobt_get_rec() local
119 if (!xfs_verify_agino(mp, agno, irec->ir_startino)) in xfs_inobt_get_rec()
140 cur->bc_btnum == XFS_BTNUM_INO ? "Used" : "Free", agno); in xfs_inobt_get_rec()
181 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); in xfs_inobt_insert() local
186 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, btnum); in xfs_inobt_insert()
267 xfs_agnumber_t agno, in xfs_ialloc_inode_init() argument
309 ino = XFS_AGINO_TO_INO(mp, agno, XFS_AGB_TO_AGINO(mp, agbno)); in xfs_ialloc_inode_init()
320 xfs_icreate_log(tp, agno, agbno, icount, in xfs_ialloc_inode_init()
329 d = XFS_AGB_TO_DADDR(mp, agno, agbno + in xfs_ialloc_inode_init()
529 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); in xfs_inobt_insert_sprec() local
[all …]
Dxfs_refcount_btree.c29 cur->bc_ag.agbp, cur->bc_ag.agno); in xfs_refcountbt_dup_cursor()
68 args.fsbno = XFS_AGB_TO_FSB(cur->bc_mp, cur->bc_ag.agno, in xfs_refcountbt_alloc_block()
77 trace_xfs_refcountbt_alloc_block(cur->bc_mp, cur->bc_ag.agno, in xfs_refcountbt_alloc_block()
83 ASSERT(args.agno == cur->bc_ag.agno); in xfs_refcountbt_alloc_block()
108 trace_xfs_refcountbt_free_block(cur->bc_mp, cur->bc_ag.agno, in xfs_refcountbt_free_block()
173 ASSERT(cur->bc_ag.agno == be32_to_cpu(agf->agf_seqno)); in xfs_refcountbt_init_ptr_from_cur()
319 xfs_agnumber_t agno) in xfs_refcountbt_init_common() argument
323 ASSERT(agno != NULLAGNUMBER); in xfs_refcountbt_init_common()
324 ASSERT(agno < mp->m_sb.sb_agcount); in xfs_refcountbt_init_common()
333 cur->bc_ag.agno = agno; in xfs_refcountbt_init_common()
[all …]
Dxfs_ialloc_btree.c37 cur->bc_ag.agbp, cur->bc_ag.agno, in xfs_inobt_dup_cursor()
105 args.fsbno = XFS_AGB_TO_FSB(args.mp, cur->bc_ag.agno, sbno); in __xfs_inobt_alloc_block()
238 ASSERT(cur->bc_ag.agno == be32_to_cpu(agi->agi_seqno)); in xfs_inobt_init_ptr_from_cur()
250 ASSERT(cur->bc_ag.agno == be32_to_cpu(agi->agi_seqno)); in xfs_finobt_init_ptr_from_cur()
430 xfs_agnumber_t agno, /* allocation group number */ in xfs_inobt_init_common() argument
452 cur->bc_ag.agno = agno; in xfs_inobt_init_common()
462 xfs_agnumber_t agno, in xfs_inobt_init_cursor() argument
468 cur = xfs_inobt_init_common(mp, tp, agno, btnum); in xfs_inobt_init_cursor()
482 xfs_agnumber_t agno, in xfs_inobt_stage_cursor() argument
487 cur = xfs_inobt_init_common(mp, NULL, agno, btnum); in xfs_inobt_stage_cursor()
[all …]
Dxfs_rmap.c82 trace_xfs_rmap_update(cur->bc_mp, cur->bc_ag.agno, in xfs_rmap_update()
94 cur->bc_ag.agno, error, _RET_IP_); in xfs_rmap_update()
110 trace_xfs_rmap_insert(rcur->bc_mp, rcur->bc_ag.agno, agbno, in xfs_rmap_insert()
136 rcur->bc_ag.agno, error, _RET_IP_); in xfs_rmap_insert()
152 trace_xfs_rmap_delete(rcur->bc_mp, rcur->bc_ag.agno, agbno, in xfs_rmap_delete()
173 rcur->bc_ag.agno, error, _RET_IP_); in xfs_rmap_delete()
200 xfs_agnumber_t agno = cur->bc_ag.agno; in xfs_rmap_get_rec() local
220 if (!xfs_verify_agbno(mp, agno, irec->rm_startblock)) in xfs_rmap_get_rec()
225 if (!xfs_verify_agbno(mp, agno, in xfs_rmap_get_rec()
239 agno); in xfs_rmap_get_rec()
[all …]
Dxfs_alloc.c233 xfs_agnumber_t agno = cur->bc_ag.agno; in xfs_alloc_get_rec() local
248 if (!xfs_verify_agbno(mp, agno, *bno)) in xfs_alloc_get_rec()
252 if (!xfs_verify_agbno(mp, agno, *bno + *len - 1)) in xfs_alloc_get_rec()
260 cur->bc_btnum == XFS_BTNUM_BNO ? "Block" : "Size", agno); in xfs_alloc_get_rec()
692 xfs_agnumber_t agno, /* allocation group number */ in xfs_alloc_read_agfl() argument
698 ASSERT(agno != NULLAGNUMBER); in xfs_alloc_read_agfl()
701 XFS_AG_DADDR(mp, agno, XFS_AGFL_DADDR(mp)), in xfs_alloc_read_agfl()
780 args->agbp, args->agno, XFS_BTNUM_CNT); in xfs_alloc_cur_setup()
790 args->agbp, args->agno, XFS_BTNUM_BNO); in xfs_alloc_cur_setup()
793 args->agbp, args->agno, XFS_BTNUM_BNO); in xfs_alloc_cur_setup()
[all …]
Dxfs_rmap_btree.c55 cur->bc_ag.agbp, cur->bc_ag.agno); in xfs_rmapbt_dup_cursor()
96 trace_xfs_rmapbt_alloc_block(cur->bc_mp, cur->bc_ag.agno, in xfs_rmapbt_alloc_block()
103 xfs_extent_busy_reuse(cur->bc_mp, cur->bc_ag.agno, bno, 1, in xfs_rmapbt_alloc_block()
111 xfs_ag_resv_rmapbt_alloc(cur->bc_mp, cur->bc_ag.agno); in xfs_rmapbt_alloc_block()
129 trace_xfs_rmapbt_free_block(cur->bc_mp, cur->bc_ag.agno, in xfs_rmapbt_free_block()
220 ASSERT(cur->bc_ag.agno == be32_to_cpu(agf->agf_seqno)); in xfs_rmapbt_init_ptr_from_cur()
455 xfs_agnumber_t agno) in xfs_rmapbt_init_common() argument
467 cur->bc_ag.agno = agno; in xfs_rmapbt_init_common()
479 xfs_agnumber_t agno) in xfs_rmapbt_init_cursor() argument
484 cur = xfs_rmapbt_init_common(mp, tp, agno); in xfs_rmapbt_init_cursor()
[all …]
/kernel/linux/linux-5.10/fs/xfs/scrub/
Dtrace.h90 __field(xfs_agnumber_t, agno)
100 __entry->agno = sm->sm_agno;
110 __entry->agno,
129 TP_PROTO(struct xfs_scrub *sc, xfs_agnumber_t agno,
131 TP_ARGS(sc, agno, bno, error, ret_ip),
135 __field(xfs_agnumber_t, agno)
143 __entry->agno = agno;
151 __entry->agno,
195 __field(xfs_agnumber_t, agno)
201 xfs_agnumber_t agno;
[all …]
Dfscounters.c70 xfs_agnumber_t agno; in xchk_fscount_warmup() local
73 for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { in xchk_fscount_warmup()
74 pag = xfs_perag_get(mp, agno); in xchk_fscount_warmup()
80 error = xfs_ialloc_read_agi(mp, sc->tp, agno, &agi_bp); in xchk_fscount_warmup()
83 error = xfs_alloc_read_agf(mp, sc->tp, agno, 0, &agf_bp); in xchk_fscount_warmup()
161 xfs_agnumber_t agno; in xchk_fscount_aggregate_agcounts() local
170 for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { in xchk_fscount_aggregate_agcounts()
171 pag = xfs_perag_get(mp, agno); in xchk_fscount_aggregate_agcounts()
Dagheader.c29 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_superblock_xref() local
38 error = xchk_ag_init(sc, agno, &sc->sa); in xchk_superblock_xref()
39 if (!xchk_xref_process_error(sc, agno, agbno, &error)) in xchk_superblock_xref()
65 xfs_agnumber_t agno; in xchk_superblock() local
71 agno = sc->sm->sm_agno; in xchk_superblock()
72 if (agno == 0) in xchk_superblock()
75 error = xfs_sb_read_secondary(mp, sc->tp, agno, &bp); in xchk_superblock()
92 if (!xchk_process_error(sc, agno, XFS_SB_BLOCK(mp), &error)) in xchk_superblock()
511 xfs_agnumber_t agno; in xchk_agf() local
521 agno = sc->sa.agno = sc->sm->sm_agno; in xchk_agf()
[all …]
Dcommon.c66 xfs_agnumber_t agno, in __xchk_process_error() argument
86 trace_xchk_op_error(sc, agno, bno, *error, in __xchk_process_error()
96 xfs_agnumber_t agno, in xchk_process_error() argument
100 return __xchk_process_error(sc, agno, bno, error, in xchk_process_error()
107 xfs_agnumber_t agno, in xchk_xref_process_error() argument
111 return __xchk_process_error(sc, agno, bno, error, in xchk_xref_process_error()
404 xfs_agnumber_t agno, in xchk_ag_read_headers() argument
412 error = xfs_ialloc_read_agi(mp, sc->tp, agno, agi); in xchk_ag_read_headers()
416 error = xfs_alloc_read_agf(mp, sc->tp, agno, 0, agf); in xchk_ag_read_headers()
420 error = xfs_alloc_read_agfl(mp, sc->tp, agno, agfl); in xchk_ag_read_headers()
[all …]
Dagheader_repair.c38 xfs_agnumber_t agno; in xrep_superblock() local
42 agno = sc->sm->sm_agno; in xrep_superblock()
43 if (agno == 0) in xrep_superblock()
46 error = xfs_sb_get_secondary(mp, sc->tp, agno, &bp); in xrep_superblock()
96 if (!xfs_verify_agbno(mp, sc->sa.agno, agbno)) in xrep_agf_check_agfl_block()
121 xfs_agnumber_t agno = sc->sm->sm_agno; in xrep_check_btree_root() local
123 return xfs_verify_agbno(mp, agno, fab->root) && in xrep_check_btree_root()
190 agf->agf_seqno = cpu_to_be32(sc->sa.agno); in xrep_agf_init_header()
191 agf->agf_length = cpu_to_be32(xfs_ag_block_count(mp, sc->sa.agno)); in xrep_agf_init_header()
248 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.agno, in xrep_agf_calc_from_btrees()
[all …]
Drepair.c303 xfs_extent_busy_reuse(sc->mp, sc->sa.agno, bno, in xrep_alloc_ag_block()
305 *fsbno = XFS_AGB_TO_FSB(sc->mp, sc->sa.agno, bno); in xrep_alloc_ag_block()
307 xfs_ag_resv_rmapbt_alloc(sc->mp, sc->sa.agno); in xrep_alloc_ag_block()
316 args.fsbno = XFS_AGB_TO_FSB(args.mp, sc->sa.agno, 0); in xrep_alloc_ag_block()
351 ASSERT(XFS_FSB_TO_AGNO(mp, fsb) == sc->sa.agno); in xrep_init_btblock()
358 xfs_btree_init_block(mp, bp, btnum, 0, 0, sc->sa.agno); in xrep_init_btblock()
480 args.agno = sc->sa.agno; in xrep_fix_freelist()
508 error = xfs_rmap_alloc(sc->tp, sc->sa.agf_bp, sc->sa.agno, agbno, 1, in xrep_put_freelist()
518 xfs_extent_busy_insert(sc->tp, sc->sa.agno, agbno, 1, in xrep_put_freelist()
534 xfs_agnumber_t agno; in xrep_reap_block() local
[all …]
/kernel/linux/linux-5.10/fs/xfs/
Dxfs_iwalk.c93 xfs_agnumber_t agno, in xfs_iwalk_ichunk_ra() argument
109 xfs_btree_reada_bufs(mp, agno, agbno, in xfs_iwalk_ichunk_ra()
183 xfs_agnumber_t agno; in xfs_iwalk_ag_recs() local
186 agno = XFS_INO_TO_AGNO(mp, iwag->startino); in xfs_iwalk_ag_recs()
190 trace_xfs_iwalk_ag_rec(mp, agno, irec); in xfs_iwalk_ag_recs()
196 error = iwag->inobt_walk_fn(mp, tp, agno, irec, in xfs_iwalk_ag_recs()
214 ino = XFS_AGINO_TO_INO(mp, agno, irec->ir_startino + j); in xfs_iwalk_ag_recs()
260 xfs_agnumber_t agno, in xfs_iwalk_ag_start() argument
273 error = xfs_inobt_cur(mp, tp, agno, XFS_BTNUM_INO, curpp, agi_bpp); in xfs_iwalk_ag_start()
307 iwag->lastino = XFS_AGINO_TO_INO(mp, agno, in xfs_iwalk_ag_start()
[all …]
Dxfs_discard.c25 xfs_agnumber_t agno, in xfs_trim_extents() argument
39 pag = xfs_perag_get(mp, agno); in xfs_trim_extents()
48 error = xfs_alloc_read_agf(mp, NULL, agno, 0, &agbp); in xfs_trim_extents()
53 cur = xfs_allocbt_init_cursor(mp, NULL, agbp, agno, XFS_BTNUM_CNT); in xfs_trim_extents()
86 dbno = XFS_AGB_TO_DADDR(mp, agno, fbno); in xfs_trim_extents()
93 trace_xfs_discard_toosmall(mp, agno, fbno, flen); in xfs_trim_extents()
103 trace_xfs_discard_exclude(mp, agno, fbno, flen); in xfs_trim_extents()
111 if (xfs_extent_busy_search(mp, agno, fbno, flen)) { in xfs_trim_extents()
112 trace_xfs_discard_busy(mp, agno, fbno, flen); in xfs_trim_extents()
116 trace_xfs_discard_extent(mp, agno, fbno, flen); in xfs_trim_extents()
[all …]
Dxfs_extent_busy.c25 xfs_agnumber_t agno, in xfs_extent_busy_insert() argument
37 new->agno = agno; in xfs_extent_busy_insert()
44 trace_xfs_extent_busy(tp->t_mountp, agno, bno, len); in xfs_extent_busy_insert()
46 pag = xfs_perag_get(tp->t_mountp, new->agno); in xfs_extent_busy_insert()
84 xfs_agnumber_t agno, in xfs_extent_busy_search() argument
93 pag = xfs_perag_get(mp, agno); in xfs_extent_busy_search()
284 xfs_agnumber_t agno, in xfs_extent_busy_reuse() argument
294 pag = xfs_perag_get(mp, agno); in xfs_extent_busy_reuse()
490 trace_xfs_extent_busy_trim(args->mp, args->agno, *bno, *len, in xfs_extent_busy_trim()
515 trace_xfs_extent_busy_clear(mp, busyp->agno, busyp->bno, in xfs_extent_busy_clear_one()
[all …]
Dxfs_trace.h107 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, int refcount,
109 TP_ARGS(mp, agno, refcount, caller_ip),
112 __field(xfs_agnumber_t, agno)
118 __entry->agno = agno;
124 __entry->agno,
131 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, int refcount, \
133 TP_ARGS(mp, agno, refcount, caller_ip))
145 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno),
146 TP_ARGS(mp, agno),
149 __field(xfs_agnumber_t, agno)
[all …]
Dxfs_fsops.c90 for (id.agno = nagcount - 1; in xfs_growfs_data_private()
91 id.agno >= oagcount; in xfs_growfs_data_private()
92 id.agno--, new -= id.agsize) { in xfs_growfs_data_private()
94 if (id.agno == nagcount - 1) in xfs_growfs_data_private()
96 (id.agno * (xfs_rfsblock_t)mp->m_sb.sb_agblocks); in xfs_growfs_data_private()
149 pag = xfs_perag_get(mp, id.agno); in xfs_growfs_data_private()
513 xfs_agnumber_t agno; in xfs_fs_reserve_ag_blocks() local
519 for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { in xfs_fs_reserve_ag_blocks()
520 pag = xfs_perag_get(mp, agno); in xfs_fs_reserve_ag_blocks()
543 xfs_agnumber_t agno; in xfs_fs_unreserve_ag_blocks() local
[all …]
Dxfs_extent_busy.h25 xfs_agnumber_t agno; member
34 xfs_extent_busy_insert(struct xfs_trans *tp, xfs_agnumber_t agno,
42 xfs_extent_busy_search(struct xfs_mount *mp, xfs_agnumber_t agno,
46 xfs_extent_busy_reuse(struct xfs_mount *mp, xfs_agnumber_t agno,
Dxfs_icreate_item.c91 xfs_agnumber_t agno, in xfs_icreate_log() argument
107 icp->ic_format.icl_ag = cpu_to_be32(agno); in xfs_icreate_log()
150 xfs_agnumber_t agno; in xlog_recover_icreate_commit_pass2() local
171 agno = be32_to_cpu(icl->icl_ag); in xlog_recover_icreate_commit_pass2()
172 if (agno >= mp->m_sb.sb_agcount) { in xlog_recover_icreate_commit_pass2()
227 daddr = XFS_AGB_TO_DADDR(mp, agno, in xlog_recover_icreate_commit_pass2()
253 return xfs_ialloc_inode_init(mp, NULL, buffer_list, count, agno, agbno, in xlog_recover_icreate_commit_pass2()
/kernel/linux/linux-5.10/fs/jfs/
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
849 int iagno, ino, extno, bitno, sword, agno; in diFree() local
883 agno = BLKTOAG(JFS_IP(ip)->agstart, JFS_SBI(ip->i_sb)); in diFree()
887 AG_LOCK(imap, agno); in diFree()
898 AG_UNLOCK(imap, agno); in diFree()
918 AG_UNLOCK(imap, agno); in diFree()
927 if (imap->im_agctl[agno].numfree > imap->im_agctl[agno].numinos) { in diFree()
930 AG_UNLOCK(imap, agno); in diFree()
939 imap->im_agctl[agno].numfree < 96 || in diFree()
[all …]
Djfs_discard.c70 int agno, agno_end; in jfs_ioc_trim() local
97 agno = BLKTOAG(start, JFS_SBI(ip->i_sb)); in jfs_ioc_trim()
99 while (agno <= agno_end) { in jfs_ioc_trim()
100 trimmed += dbDiscardAG(ip, agno, minlen); in jfs_ioc_trim()
101 agno++; in jfs_ioc_trim()
/kernel/linux/linux-5.10/fs/ext4/
Dfsmap.c91 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()
190 ext4_group_t agno, ext4_grpblk_t start, in ext4_getfsmap_datadev_helper() argument
202 fsb = (EXT4_C2B(sbi, start) + ext4_group_first_block_no(sb, agno)); in ext4_getfsmap_datadev_helper()
246 ext4_group_first_block_no(sb, agno + 1)) { in ext4_getfsmap_datadev_helper()
315 ext4_group_t agno, in ext4_getfsmap_find_sb() argument
319 ext4_fsblk_t fsb = ext4_group_first_block_no(sb, agno); in ext4_getfsmap_find_sb()
[all …]

1234