/Linux-v5.4/fs/xfs/libxfs/ |
D | xfs_types.c | 19 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 …]
|
D | xfs_ialloc.c | 108 xfs_agnumber_t agno = cur->bc_private.a.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 308 ino = XFS_AGINO_TO_INO(mp, agno, XFS_AGB_TO_AGINO(mp, agbno)); in xfs_ialloc_inode_init() 319 xfs_icreate_log(tp, agno, agbno, icount, in xfs_ialloc_inode_init() 328 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 …]
|
D | xfs_refcount.c | 49 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_private.a.agno, bno, in xfs_refcount_lookup_le() 66 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_private.a.agno, bno, in xfs_refcount_lookup_ge() 83 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_private.a.agno, bno, in xfs_refcount_lookup_eq() 111 xfs_agnumber_t agno = cur->bc_private.a.agno; in xfs_refcount_get_rec() local 122 agno = cur->bc_private.a.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_private.a.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_private.a.agno, irec); in xfs_refcount_update() [all …]
|
D | xfs_ag.c | 50 id->agno == XFS_FSB_TO_AGNO(mp, mp->m_sb.sb_logstart); in is_log_ag() 62 xfs_btree_init_block(mp, bp, id->type, 0, 0, id->agno); in xfs_btroot_init() 129 xfs_btree_init_block(mp, bp, XFS_BTNUM_BNO, 0, 1, id->agno); in xfs_bnoroot_init() 139 xfs_btree_init_block(mp, bp, XFS_BTNUM_CNT, 0, 1, id->agno); in xfs_cntroot_init() 155 xfs_btree_init_block(mp, bp, XFS_BTNUM_RMAP, 0, 4, id->agno); in xfs_rmaproot_init() 248 agf->agf_seqno = cpu_to_be32(id->agno); in xfs_agfblock_init() 297 agfl->agfl_seqno = cpu_to_be32(id->agno); in xfs_agflblock_init() 317 agi->agi_seqno = cpu_to_be32(id->agno); in xfs_agiblock_init() 385 .daddr = XFS_AG_DADDR(mp, id->agno, XFS_SB_DADDR), in xfs_ag_init_headers() 392 .daddr = XFS_AG_DADDR(mp, id->agno, XFS_AGF_DADDR(mp)), in xfs_ag_init_headers() [all …]
|
D | xfs_rmap.c | 82 trace_xfs_rmap_update(cur->bc_mp, cur->bc_private.a.agno, in xfs_rmap_update() 94 cur->bc_private.a.agno, error, _RET_IP_); in xfs_rmap_update() 110 trace_xfs_rmap_insert(rcur->bc_mp, rcur->bc_private.a.agno, agbno, in xfs_rmap_insert() 130 rcur->bc_private.a.agno, error, _RET_IP_); in xfs_rmap_insert() 146 trace_xfs_rmap_delete(rcur->bc_mp, rcur->bc_private.a.agno, agbno, in xfs_rmap_delete() 161 rcur->bc_private.a.agno, error, _RET_IP_); in xfs_rmap_delete() 188 xfs_agnumber_t agno = cur->bc_private.a.agno; in xfs_rmap_get_rec() local 208 if (!xfs_verify_agbno(mp, agno, irec->rm_startblock)) in xfs_rmap_get_rec() 213 if (!xfs_verify_agbno(mp, agno, in xfs_rmap_get_rec() 227 agno); in xfs_rmap_get_rec() [all …]
|
D | xfs_refcount_btree.c | 28 cur->bc_private.a.agbp, cur->bc_private.a.agno); in xfs_refcountbt_dup_cursor() 69 args.fsbno = XFS_AGB_TO_FSB(cur->bc_mp, cur->bc_private.a.agno, in xfs_refcountbt_alloc_block() 78 trace_xfs_refcountbt_alloc_block(cur->bc_mp, cur->bc_private.a.agno, in xfs_refcountbt_alloc_block() 84 ASSERT(args.agno == cur->bc_private.a.agno); in xfs_refcountbt_alloc_block() 109 trace_xfs_refcountbt_free_block(cur->bc_mp, cur->bc_private.a.agno, in xfs_refcountbt_free_block() 174 ASSERT(cur->bc_private.a.agno == be32_to_cpu(agf->agf_seqno)); in xfs_refcountbt_init_ptr_from_cur() 321 xfs_agnumber_t agno) in xfs_refcountbt_init_cursor() argument 326 ASSERT(agno != NULLAGNUMBER); in xfs_refcountbt_init_cursor() 327 ASSERT(agno < mp->m_sb.sb_agcount); in xfs_refcountbt_init_cursor() 340 cur->bc_private.a.agno = agno; in xfs_refcountbt_init_cursor() [all …]
|
D | xfs_ialloc_btree.c | 37 cur->bc_private.a.agbp, cur->bc_private.a.agno, in xfs_inobt_dup_cursor() 86 args.fsbno = XFS_AGB_TO_FSB(args.mp, cur->bc_private.a.agno, sbno); in __xfs_inobt_alloc_block() 217 ASSERT(cur->bc_private.a.agno == be32_to_cpu(agi->agi_seqno)); in xfs_inobt_init_ptr_from_cur() 229 ASSERT(cur->bc_private.a.agno == be32_to_cpu(agi->agi_seqno)); in xfs_finobt_init_ptr_from_cur() 410 xfs_agnumber_t agno, /* allocation group number */ in xfs_inobt_init_cursor() argument 437 cur->bc_private.a.agno = agno; in xfs_inobt_init_cursor() 543 xfs_agnumber_t agno) in xfs_inobt_max_size() argument 545 xfs_agblock_t agblocks = xfs_ag_block_count(mp, agno); in xfs_inobt_max_size() 557 XFS_FSB_TO_AGNO(mp, mp->m_sb.sb_logstart) == agno) in xfs_inobt_max_size() 570 xfs_agnumber_t agno, in xfs_inobt_cur() argument [all …]
|
D | xfs_alloc.c | 215 xfs_agnumber_t agno = cur->bc_private.a.agno; in xfs_alloc_get_rec() local 230 if (!xfs_verify_agbno(mp, agno, *bno)) in xfs_alloc_get_rec() 234 if (!xfs_verify_agbno(mp, agno, *bno + *len - 1)) in xfs_alloc_get_rec() 242 cur->bc_btnum == XFS_BTNUM_BNO ? "Block" : "Size", agno); in xfs_alloc_get_rec() 655 xfs_agnumber_t agno, /* allocation group number */ in xfs_alloc_read_agfl() argument 661 ASSERT(agno != NULLAGNUMBER); in xfs_alloc_read_agfl() 664 XFS_AG_DADDR(mp, agno, XFS_AGFL_DADDR(mp)), in xfs_alloc_read_agfl() 746 xfs_extent_busy_reuse(args->mp, args->agno, fbno, 1, in xfs_alloc_ag_vextent_small() 752 bp = xfs_btree_get_bufs(args->mp, args->tp, args->agno, fbno); in xfs_alloc_ag_vextent_small() 771 error = xfs_rmap_free(args->tp, args->agbp, args->agno, fbno, 1, in xfs_alloc_ag_vextent_small() [all …]
|
D | xfs_ag_resv.h | 29 xfs_agnumber_t agno) in xfs_ag_resv_rmapbt_alloc() argument 35 pag = xfs_perag_get(mp, agno); in xfs_ag_resv_rmapbt_alloc() 43 xfs_agnumber_t agno) in xfs_ag_resv_rmapbt_free() argument 47 pag = xfs_perag_get(mp, agno); in xfs_ag_resv_rmapbt_free()
|
D | xfs_alloc.h | 59 xfs_agnumber_t agno; /* allocation group number */ member 145 xfs_agnumber_t agno, /* allocation group number */ 166 xfs_agnumber_t agno, /* allocation group number */ 222 xfs_agnumber_t agno, int flags, struct xfs_buf **bpp); 224 xfs_agnumber_t agno, struct xfs_buf **bpp); 228 int xfs_free_extent_fix_freelist(struct xfs_trans *tp, xfs_agnumber_t agno,
|
/Linux-v5.4/fs/xfs/scrub/ |
D | trace.h | 90 __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 …]
|
D | agheader.c | 29 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 …]
|
D | fscounters.c | 70 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() 164 xfs_agnumber_t agno; in xchk_fscount_aggregate_agcounts() local 172 for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { in xchk_fscount_aggregate_agcounts() 173 pag = xfs_perag_get(mp, agno); in xchk_fscount_aggregate_agcounts()
|
D | common.c | 66 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 …]
|
D | agheader_repair.c | 38 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 …]
|
D | repair.c | 301 xfs_extent_busy_reuse(sc->mp, sc->sa.agno, bno, in xrep_alloc_ag_block() 303 *fsbno = XFS_AGB_TO_FSB(sc->mp, sc->sa.agno, bno); in xrep_alloc_ag_block() 305 xfs_ag_resv_rmapbt_alloc(sc->mp, sc->sa.agno); in xrep_alloc_ag_block() 314 args.fsbno = XFS_AGB_TO_FSB(args.mp, sc->sa.agno, 0); in xrep_alloc_ag_block() 348 ASSERT(XFS_FSB_TO_AGNO(mp, fsb) == sc->sa.agno); in xrep_init_btblock() 352 xfs_btree_init_block(mp, bp, btnum, 0, 0, sc->sa.agno); in xrep_init_btblock() 474 args.agno = sc->sa.agno; in xrep_fix_freelist() 502 error = xfs_rmap_alloc(sc->tp, sc->sa.agf_bp, sc->sa.agno, agbno, 1, in xrep_put_freelist() 512 xfs_extent_busy_insert(sc->tp, sc->sa.agno, agbno, 1, in xrep_put_freelist() 528 xfs_agnumber_t agno; in xrep_reap_block() local [all …]
|
/Linux-v5.4/fs/xfs/ |
D | xfs_iwalk.c | 90 xfs_agnumber_t agno, in xfs_iwalk_ichunk_ra() argument 106 xfs_btree_reada_bufs(mp, agno, agbno, in xfs_iwalk_ichunk_ra() 180 xfs_agnumber_t agno; in xfs_iwalk_ag_recs() local 183 agno = XFS_INO_TO_AGNO(mp, iwag->startino); in xfs_iwalk_ag_recs() 187 trace_xfs_iwalk_ag_rec(mp, agno, irec); in xfs_iwalk_ag_recs() 193 error = iwag->inobt_walk_fn(mp, tp, agno, irec, in xfs_iwalk_ag_recs() 211 ino = XFS_AGINO_TO_INO(mp, agno, irec->ir_startino + j); in xfs_iwalk_ag_recs() 257 xfs_agnumber_t agno, in xfs_iwalk_ag_start() argument 270 error = xfs_inobt_cur(mp, tp, agno, XFS_BTNUM_INO, curpp, agi_bpp); in xfs_iwalk_ag_start() 341 xfs_agnumber_t agno, in xfs_iwalk_run_callbacks() argument [all …]
|
D | xfs_discard.c | 24 xfs_agnumber_t agno, in xfs_trim_extents() argument 37 pag = xfs_perag_get(mp, agno); in xfs_trim_extents() 46 error = xfs_alloc_read_agf(mp, NULL, agno, 0, &agbp); in xfs_trim_extents() 50 cur = xfs_allocbt_init_cursor(mp, NULL, agbp, agno, XFS_BTNUM_CNT); in xfs_trim_extents() 81 dbno = XFS_AGB_TO_DADDR(mp, agno, fbno); in xfs_trim_extents() 88 trace_xfs_discard_toosmall(mp, agno, fbno, flen); in xfs_trim_extents() 98 trace_xfs_discard_exclude(mp, agno, fbno, flen); in xfs_trim_extents() 106 if (xfs_extent_busy_search(mp, agno, fbno, flen)) { in xfs_trim_extents() 107 trace_xfs_discard_busy(mp, agno, fbno, flen); in xfs_trim_extents() 111 trace_xfs_discard_extent(mp, agno, fbno, flen); in xfs_trim_extents() [all …]
|
D | xfs_extent_busy.c | 25 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() 504 trace_xfs_extent_busy_trim(args->mp, args->agno, *bno, *len, in xfs_extent_busy_trim() 529 trace_xfs_extent_busy_clear(mp, busyp->agno, busyp->bno, in xfs_extent_busy_clear_one() [all …]
|
D | xfs_trace.h | 100 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, int refcount, 102 TP_ARGS(mp, agno, refcount, caller_ip), 105 __field(xfs_agnumber_t, agno) 111 __entry->agno = agno; 117 __entry->agno, 124 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, int refcount, \ 126 TP_ARGS(mp, agno, refcount, caller_ip)) 138 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno), 139 TP_ARGS(mp, agno), 142 __field(xfs_agnumber_t, agno) [all …]
|
D | xfs_fsops.c | 90 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() 526 xfs_agnumber_t agno; in xfs_fs_reserve_ag_blocks() local 532 for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { in xfs_fs_reserve_ag_blocks() 533 pag = xfs_perag_get(mp, agno); in xfs_fs_reserve_ag_blocks() 556 xfs_agnumber_t agno; in xfs_fs_unreserve_ag_blocks() local [all …]
|
D | xfs_extent_busy.h | 25 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,
|
/Linux-v5.4/fs/jfs/ |
D | jfs_imap.c | 57 #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 …]
|
D | jfs_discard.c | 70 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()
|
/Linux-v5.4/fs/ext4/ |
D | fsmap.c | 91 ext4_group_t agno; in ext4_getfsmap_helper() local 135 &agno, &cno); in ext4_getfsmap_helper() 136 trace_ext4_fsmap_mapping(sb, info->gfi_dev, agno, in ext4_getfsmap_helper() 159 ext4_get_group_no_and_offset(sb, rec_fsblk, &agno, &cno); in ext4_getfsmap_helper() 160 trace_ext4_fsmap_mapping(sb, info->gfi_dev, agno, EXT4_C2B(sbi, cno), in ext4_getfsmap_helper() 187 ext4_group_t agno, ext4_grpblk_t start, in ext4_getfsmap_datadev_helper() argument 199 fsb = (EXT4_C2B(sbi, start) + ext4_group_first_block_no(sb, agno)); in ext4_getfsmap_datadev_helper() 243 ext4_group_first_block_no(sb, agno + 1)) { in ext4_getfsmap_datadev_helper() 312 ext4_group_t agno, in ext4_getfsmap_find_sb() argument 316 ext4_fsblk_t fsb = ext4_group_first_block_no(sb, agno); in ext4_getfsmap_find_sb() [all …]
|