Home
last modified time | relevance | path

Searched refs:agno (Results 1 - 25 of 138) sorted by relevance

123456

/kernel/linux/linux-5.10/fs/xfs/libxfs/
H A Dxfs_types.c19 xfs_agnumber_t agno) in xfs_ag_block_count()
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()
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()
17 xfs_ag_block_count( struct xfs_mount *mp, xfs_agnumber_t agno) xfs_ag_block_count() argument
33 xfs_verify_agbno( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agblock_t agbno) xfs_verify_agbno() argument
66 xfs_agino_range( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agino_t *first, xfs_agino_t *last) xfs_agino_range() argument
97 xfs_verify_agino( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agino_t agino) xfs_verify_agino() argument
114 xfs_verify_agino_or_null( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agino_t agino) xfs_verify_agino_or_null() argument
131 xfs_agnumber_t agno = XFS_INO_TO_AGNO(mp, ino); xfs_verify_ino() local
186 xfs_agnumber_t agno; xfs_icount_range() local
[all...]
H A 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, ire in xfs_refcount_get_rec()
1145 xfs_agnumber_t agno; xfs_refcount_finish_one() local
1682 xfs_refcount_recover_cow_leftovers( struct xfs_mount *mp, xfs_agnumber_t agno) xfs_refcount_recover_cow_leftovers() argument
[all...]
H A 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_DADD in xfs_ag_init_headers()
548 xfs_ag_get_geometry( struct xfs_mount *mp, xfs_agnumber_t agno, struct xfs_ag_geometry *ageo) xfs_ag_get_geometry() argument
[all...]
H A 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()
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, agbn in xfs_ialloc_inode_init()
262 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) xfs_ialloc_inode_init() argument
529 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); xfs_inobt_insert_sprec() local
620 xfs_agnumber_t agno; xfs_ialloc_ag_alloc() local
914 xfs_agnumber_t agno; xfs_ialloc_next_ag() local
936 xfs_agnumber_t agno; /* current ag number */ xfs_ialloc_ag_select() local
1133 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); xfs_dialloc_ag_inobt() local
1582 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); xfs_dialloc_ag() local
1716 xfs_agnumber_t agno; xfs_dialloc() local
1855 xfs_difree_inode_chunk( struct xfs_trans *tp, xfs_agnumber_t agno, struct xfs_inobt_rec_incore *rec) xfs_difree_inode_chunk() argument
1937 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); xfs_difree_inobt() local
2070 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); xfs_difree_finobt() local
2183 xfs_agnumber_t agno; /* allocation group number */ xfs_difree() local
2248 xfs_imap_lookup( struct xfs_mount *mp, struct xfs_trans *tp, xfs_agnumber_t agno, xfs_agino_t agino, xfs_agblock_t agbno, xfs_agblock_t *chunk_agbno, xfs_agblock_t *offset_agbno, int flags) xfs_imap_lookup() argument
2320 xfs_agnumber_t agno; /* allocation group number */ xfs_imap() local
2611 xfs_read_agi( struct xfs_mount *mp, struct xfs_trans *tp, xfs_agnumber_t agno, struct xfs_buf **bpp) xfs_read_agi() argument
2635 xfs_ialloc_read_agi( struct xfs_mount *mp, struct xfs_trans *tp, xfs_agnumber_t agno, struct xfs_buf **bpp) xfs_ialloc_read_agi() argument
2672 xfs_ialloc_pagi_init( xfs_mount_t *mp, xfs_trans_t *tp, xfs_agnumber_t agno) xfs_ialloc_pagi_init() argument
[all...]
H A 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()
452 cur->bc_ag.agno = agno; in xfs_inobt_init_common()
462 xfs_agnumber_t agno, in xfs_inobt_init_cursor()
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()
427 xfs_inobt_init_common( struct xfs_mount *mp, struct xfs_trans *tp, xfs_agnumber_t agno, xfs_btnum_t btnum) xfs_inobt_init_common() argument
458 xfs_inobt_init_cursor( struct xfs_mount *mp, struct xfs_trans *tp, struct xfs_buf *agbp, xfs_agnumber_t agno, xfs_btnum_t btnum) xfs_inobt_init_cursor() argument
479 xfs_inobt_stage_cursor( struct xfs_mount *mp, struct xbtree_afakeroot *afake, xfs_agnumber_t agno, xfs_btnum_t btnum) xfs_inobt_stage_cursor() argument
630 xfs_inobt_max_size( struct xfs_mount *mp, xfs_agnumber_t agno) xfs_inobt_max_size() argument
656 xfs_inobt_cur( struct xfs_mount *mp, struct xfs_trans *tp, xfs_agnumber_t agno, xfs_btnum_t which, struct xfs_btree_cur **curpp, struct xfs_buf **agi_bpp) xfs_inobt_cur() argument
685 xfs_inobt_count_blocks( struct xfs_mount *mp, struct xfs_trans *tp, xfs_agnumber_t agno, xfs_btnum_t btnum, xfs_extlen_t *tree_blocks) xfs_inobt_count_blocks() argument
709 xfs_finobt_read_blocks( struct xfs_mount *mp, struct xfs_trans *tp, xfs_agnumber_t agno, xfs_extlen_t *tree_blocks) xfs_finobt_read_blocks() argument
733 xfs_finobt_calc_reserves( struct xfs_mount *mp, struct xfs_trans *tp, xfs_agnumber_t agno, xfs_extlen_t *ask, xfs_extlen_t *used) xfs_finobt_calc_reserves() argument
[all...]
H A 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()
323 ASSERT(agno != NULLAGNUMBER); in xfs_refcountbt_init_common()
324 ASSERT(agno < m in xfs_refcountbt_init_common()
316 xfs_refcountbt_init_common( struct xfs_mount *mp, struct xfs_trans *tp, xfs_agnumber_t agno) xfs_refcountbt_init_common() argument
344 xfs_refcountbt_init_cursor( struct xfs_mount *mp, struct xfs_trans *tp, struct xfs_buf *agbp, xfs_agnumber_t agno) xfs_refcountbt_init_cursor() argument
361 xfs_refcountbt_stage_cursor( struct xfs_mount *mp, struct xbtree_afakeroot *afake, xfs_agnumber_t agno) xfs_refcountbt_stage_cursor() argument
450 xfs_refcountbt_calc_reserves( struct xfs_mount *mp, struct xfs_trans *tp, xfs_agnumber_t agno, xfs_extlen_t *ask, xfs_extlen_t *used) xfs_refcountbt_calc_reserves() argument
[all...]
H A 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()
694 xfs_rmap_free( 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) xfs_rmap_free() argument
948 xfs_rmap_alloc( 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) xfs_rmap_alloc() argument
2368 xfs_agnumber_t agno; xfs_rmap_finish_one() local
2565 xfs_rmap_alloc_extent( struct xfs_trans *tp, xfs_agnumber_t agno, xfs_agblock_t bno, xfs_extlen_t len, uint64_t owner) xfs_rmap_alloc_extent() argument
2587 xfs_rmap_free_extent( struct xfs_trans *tp, xfs_agnumber_t agno, xfs_agblock_t bno, xfs_extlen_t len, uint64_t owner) xfs_rmap_free_extent() argument
[all...]
H A 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()
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_BN in xfs_alloc_cur_setup()
689 xfs_alloc_read_agfl( xfs_mount_t *mp, xfs_trans_t *tp, xfs_agnumber_t agno, xfs_buf_t **bpp) xfs_alloc_read_agfl() argument
1878 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) xfs_free_ag_extent() argument
2329 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) xfs_free_agfl_block() argument
2453 xfs_defer_agfl_block( struct xfs_trans *tp, xfs_agnumber_t agno, xfs_fsblock_t agbno, struct xfs_owner_info *oinfo) xfs_defer_agfl_block() argument
2754 xfs_alloc_pagf_init( xfs_mount_t *mp, xfs_trans_t *tp, xfs_agnumber_t agno, int flags) xfs_alloc_pagf_init() argument
2952 xfs_read_agf( struct xfs_mount *mp, struct xfs_trans *tp, xfs_agnumber_t agno, int flags, struct xfs_buf **bpp) xfs_read_agf() argument
2979 xfs_alloc_read_agf( struct xfs_mount *mp, struct xfs_trans *tp, xfs_agnumber_t agno, int flags, struct xfs_buf **bpp) xfs_alloc_read_agf() argument
3232 xfs_free_extent_fix_freelist( struct xfs_trans *tp, xfs_agnumber_t agno, struct xfs_buf **agbp) xfs_free_extent_fix_freelist() argument
3281 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, bno); __xfs_free_extent() local
[all...]
H A 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()
467 cur->bc_ag.agno = agno; in xfs_rmapbt_init_common()
479 xfs_agnumber_t agno) in xfs_rmapbt_init_cursor()
452 xfs_rmapbt_init_common( struct xfs_mount *mp, struct xfs_trans *tp, xfs_agnumber_t agno) xfs_rmapbt_init_common() argument
475 xfs_rmapbt_init_cursor( struct xfs_mount *mp, struct xfs_trans *tp, struct xfs_buf *agbp, xfs_agnumber_t agno) xfs_rmapbt_init_cursor() argument
492 xfs_rmapbt_stage_cursor( struct xfs_mount *mp, struct xbtree_afakeroot *afake, xfs_agnumber_t agno) xfs_rmapbt_stage_cursor() argument
598 xfs_rmapbt_calc_reserves( struct xfs_mount *mp, struct xfs_trans *tp, xfs_agnumber_t agno, xfs_extlen_t *ask, xfs_extlen_t *used) xfs_rmapbt_calc_reserves() argument
[all...]
/kernel/linux/linux-6.6/fs/xfs/libxfs/
H A Dxfs_ag.h138 int xfs_initialize_perag_data(struct xfs_mount *mp, xfs_agnumber_t agno);
142 struct xfs_perag *xfs_perag_get(struct xfs_mount *mp, xfs_agnumber_t agno);
143 struct xfs_perag *xfs_perag_get_tag(struct xfs_mount *mp, xfs_agnumber_t agno,
157 xfs_agblock_t xfs_ag_block_count(struct xfs_mount *mp, xfs_agnumber_t agno);
158 void xfs_agino_range(struct xfs_mount *mp, xfs_agnumber_t agno,
213 xfs_ag_contains_log(struct xfs_mount *mp, xfs_agnumber_t agno) in xfs_ag_contains_log() argument
216 agno == XFS_FSB_TO_AGNO(mp, mp->m_sb.sb_logstart); in xfs_ag_contains_log()
225 xfs_agnumber_t *agno, in xfs_perag_next()
230 *agno = pag->pag_agno + 1; in xfs_perag_next()
232 while (*agno < in xfs_perag_next()
223 xfs_perag_next( struct xfs_perag *pag, xfs_agnumber_t *agno, xfs_agnumber_t end_agno) xfs_perag_next() argument
261 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) xfs_perag_next_wrap() argument
314 xfs_agblock_t agno; /* ag to init */ global() member
[all...]
H A Dxfs_types.c24 xfs_agnumber_t agno, in xfs_verify_agno_agbno()
29 eoag = xfs_ag_block_count(mp, agno); in xfs_verify_agno_agbno()
46 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, fsbno); in xfs_verify_fsbno() local
48 if (agno >= mp->m_sb.sb_agcount) in xfs_verify_fsbno()
50 return xfs_verify_agno_agbno(mp, agno, XFS_FSB_TO_AGBNO(mp, fsbno)); in xfs_verify_fsbno()
83 xfs_agnumber_t agno, in xfs_verify_agno_agino()
89 xfs_agino_range(mp, agno, &first, &last); in xfs_verify_agno_agino()
102 xfs_agnumber_t agno = XFS_INO_TO_AGNO(mp, ino); in xfs_verify_ino() local
105 if (agno >= mp->m_sb.sb_agcount) in xfs_verify_ino()
107 if (XFS_AGINO_TO_INO(mp, agno, agin in xfs_verify_ino()
22 xfs_verify_agno_agbno( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agblock_t agbno) xfs_verify_agno_agbno() argument
81 xfs_verify_agno_agino( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agino_t agino) xfs_verify_agno_agino() argument
174 xfs_agnumber_t agno; xfs_icount_range() local
[all...]
H A Dxfs_ag.c44 xfs_agnumber_t agno) in xfs_perag_get()
49 pag = radix_tree_lookup(&mp->m_perag_tree, agno); in xfs_perag_get()
115 xfs_agnumber_t agno) in xfs_perag_grab()
120 pag = radix_tree_lookup(&mp->m_perag_tree, agno); in xfs_perag_grab()
255 xfs_agnumber_t agno; in xfs_free_perag() local
257 for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { in xfs_free_perag()
259 pag = radix_tree_delete(&mp->m_perag_tree, agno); in xfs_free_perag()
280 xfs_agnumber_t agno, in __xfs_ag_block_count()
42 xfs_perag_get( struct xfs_mount *mp, xfs_agnumber_t agno) xfs_perag_get() argument
113 xfs_perag_grab( struct xfs_mount *mp, xfs_agnumber_t agno) xfs_perag_grab() argument
278 __xfs_ag_block_count( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agnumber_t agcount, xfs_rfsblock_t dblocks) __xfs_ag_block_count() argument
292 xfs_ag_block_count( struct xfs_mount *mp, xfs_agnumber_t agno) xfs_ag_block_count() argument
326 xfs_agino_range( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agino_t *first, xfs_agino_t *last) xfs_agino_range() argument
[all...]
/kernel/linux/linux-5.10/fs/xfs/scrub/
H A Dtrace.h90 __field(xfs_agnumber_t, agno)
100 __entry->agno = sm->sm_agno;
106 TP_printk("dev %d:%d ino 0x%llx type %s agno %u inum %llu gen %u flags 0x%x error %d",
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;
148 TP_printk("dev %d:%d type %s agno
[all...]
H A 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 < m in xchk_fscount_aggregate_agcounts()
[all...]
H A Dcommon.c66 xfs_agnumber_t agno, in __xchk_process_error()
86 trace_xchk_op_error(sc, agno, bno, *error, in __xchk_process_error()
96 xfs_agnumber_t agno, in xchk_process_error()
100 return __xchk_process_error(sc, agno, bno, error, in xchk_process_error()
107 xfs_agnumber_t agno, in xchk_xref_process_error()
111 return __xchk_process_error(sc, agno, bno, error, in xchk_xref_process_error()
404 xfs_agnumber_t agno, in xchk_ag_read_headers()
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, agf in xchk_ag_read_headers()
64 __xchk_process_error( struct xfs_scrub *sc, xfs_agnumber_t agno, xfs_agblock_t bno, int *error, __u32 errflag, void *ret_ip) __xchk_process_error() argument
94 xchk_process_error( struct xfs_scrub *sc, xfs_agnumber_t agno, xfs_agblock_t bno, int *error) xchk_process_error() argument
105 xchk_xref_process_error( struct xfs_scrub *sc, xfs_agnumber_t agno, xfs_agblock_t bno, int *error) xchk_xref_process_error() argument
402 xchk_ag_read_headers( struct xfs_scrub *sc, xfs_agnumber_t agno, struct xfs_buf **agi, struct xfs_buf **agf, struct xfs_buf **agfl) xchk_ag_read_headers() argument
461 xfs_agnumber_t agno = sa->agno; xchk_ag_btcur_init() local
557 xchk_ag_init( struct xfs_scrub *sc, xfs_agnumber_t agno, struct xchk_ag *sa) xchk_ag_init() argument
[all...]
H A 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...]
H A 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 in xchk_agf()
631 xfs_agnumber_t agno = sc->sa.agno; xchk_agfl_block() local
694 xfs_agnumber_t agno; xchk_agfl() local
849 xfs_agnumber_t agno; xchk_agi() local
[all...]
/kernel/linux/linux-5.10/fs/xfs/
H A Dxfs_iwalk.c93 xfs_agnumber_t agno, in xfs_iwalk_ichunk_ra()
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()
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()
91 xfs_iwalk_ichunk_ra( struct xfs_mount *mp, xfs_agnumber_t agno, struct xfs_inobt_rec_incore *irec) xfs_iwalk_ichunk_ra() argument
258 xfs_iwalk_ag_start( struct xfs_iwalk_ag *iwag, xfs_agnumber_t agno, xfs_agino_t agino, struct xfs_btree_cur **curpp, struct xfs_buf **agi_bpp, int *has_more) xfs_iwalk_ag_start() argument
346 xfs_iwalk_run_callbacks( struct xfs_iwalk_ag *iwag, xfs_agnumber_t agno, struct xfs_btree_cur **curpp, struct xfs_buf **agi_bpp, int *has_more) xfs_iwalk_run_callbacks() argument
395 xfs_agnumber_t agno; xfs_iwalk_ag() local
558 xfs_agnumber_t agno = XFS_INO_TO_AGNO(mp, startino); xfs_iwalk() local
620 xfs_agnumber_t agno = XFS_INO_TO_AGNO(mp, startino); xfs_iwalk_threaded() local
721 xfs_agnumber_t agno = XFS_INO_TO_AGNO(mp, startino); xfs_inobt_walk() local
[all...]
H A Dxfs_discard.c25 xfs_agnumber_t agno, in xfs_trim_extents()
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, fbn in xfs_trim_extents()
23 xfs_trim_extents( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_daddr_t start, xfs_daddr_t end, xfs_daddr_t minlen, uint64_t *blocks_trimmed) xfs_trim_extents() argument
159 xfs_agnumber_t start_agno, end_agno, agno; xfs_ioc_trim() local
[all...]
H A 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;
122 TP_printk("dev %d:%d agno %u refcount %d caller %pS",
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),
[all...]
H A Dxfs_extent_busy.c25 xfs_agnumber_t agno, in xfs_extent_busy_insert()
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()
93 pag = xfs_perag_get(mp, agno); in xfs_extent_busy_search()
284 xfs_agnumber_t agno, in xfs_extent_busy_reuse()
294 pag = xfs_perag_get(mp, agno); in xfs_extent_busy_reuse()
490 trace_xfs_extent_busy_trim(args->mp, args->agno, *bn in xfs_extent_busy_trim()
23 xfs_extent_busy_insert( struct xfs_trans *tp, xfs_agnumber_t agno, xfs_agblock_t bno, xfs_extlen_t len, unsigned int flags) xfs_extent_busy_insert() argument
82 xfs_extent_busy_search( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agblock_t bno, xfs_extlen_t len) xfs_extent_busy_search() argument
282 xfs_extent_busy_reuse( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agblock_t fbno, xfs_extlen_t flen, bool userdata) xfs_extent_busy_reuse() argument
552 xfs_agnumber_t agno = NULLAGNUMBER; xfs_extent_busy_clear() local
609 xfs_agnumber_t agno; xfs_extent_busy_wait_all() local
[all...]
/kernel/linux/linux-6.6/fs/xfs/scrub/
H A Dtrace.h119 __field(xfs_agnumber_t, agno)
129 __entry->agno = sm->sm_agno;
135 TP_printk("dev %d:%d ino 0x%llx type %s agno 0x%x inum 0x%llx gen 0x%x flags (%s) error %d",
139 __entry->agno,
185 TP_PROTO(struct xfs_scrub *sc, xfs_agnumber_t agno,
187 TP_ARGS(sc, agno, bno, error, ret_ip),
191 __field(xfs_agnumber_t, agno)
199 __entry->agno = agno;
204 TP_printk("dev %d:%d type %s agno
[all...]
/kernel/linux/linux-5.10/fs/jfs/
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])
850 int iagno, ino, extno, bitno, sword, agno; in diFree() local
884 agno = BLKTOAG(JFS_IP(ip)->agstart, JFS_SBI(ip->i_sb)); in diFree()
888 AG_LOCK(imap, agno); in diFree()
899 AG_UNLOCK(imap, agno); in diFree()
919 AG_UNLOCK(imap, agno); in diFree()
928 if (imap->im_agctl[agno] in diFree()
1325 int nwords, rem, i, agno, dn_numag; diAlloc() local
1633 diAllocAG(struct inomap * imap, int agno, bool dir, struct inode *ip) diAllocAG() argument
1703 diAllocAny(struct inomap * imap, int agno, bool dir, struct inode *ip) diAllocAny() argument
1767 diAllocIno(struct inomap * imap, int agno, struct inode *ip) diAllocIno() argument
1891 diAllocExt(struct inomap * imap, int agno, struct inode *ip) diAllocExt() argument
2010 int extno, bitno, agno, sword, rc; diAllocBit() local
2156 int agno, iagno, fwd, back, freei = 0, sword, rc; diNewExt() local
2439 diNewIAG(struct inomap * imap, int *iagnop, int agno, struct metapage ** mpp) diNewIAG() argument
[all...]
/kernel/linux/linux-6.6/fs/jfs/
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; in diFree() local
882 agno = BLKTOAG(JFS_IP(ip)->agstart, JFS_SBI(ip->i_sb)); in diFree()
886 AG_LOCK(imap, agno); in diFree()
897 AG_UNLOCK(imap, agno); in diFree()
917 AG_UNLOCK(imap, agno); in diFree()
926 if (imap->im_agctl[agno] in diFree()
1323 int nwords, rem, i, agno, dn_numag; diAlloc() local
1631 diAllocAG(struct inomap * imap, int agno, bool dir, struct inode *ip) diAllocAG() argument
1701 diAllocAny(struct inomap * imap, int agno, bool dir, struct inode *ip) diAllocAny() argument
1765 diAllocIno(struct inomap * imap, int agno, struct inode *ip) diAllocIno() argument
1889 diAllocExt(struct inomap * imap, int agno, struct inode *ip) diAllocExt() argument
2008 int extno, bitno, agno, sword, rc; diAllocBit() local
2154 int agno, iagno, fwd, back, freei = 0, sword, rc; diNewExt() local
2437 diNewIAG(struct inomap * imap, int *iagnop, int agno, struct metapage ** mpp) diNewIAG() argument
[all...]
/kernel/linux/linux-6.6/fs/xfs/
H A Dxfs_trace.h11 * agno: allocation group number
170 __field(xfs_agnumber_t, agno)
177 __entry->agno = pag->pag_agno;
182 TP_printk("dev %d:%d agno 0x%x passive refs %d active refs %d caller %pS",
184 __entry->agno,
284 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno),
285 TP_ARGS(mp, agno),
288 __field(xfs_agnumber_t, agno)
292 __entry->agno = agno;
[all...]

Completed in 28 milliseconds

123456