/linux-4.19.296/fs/xfs/libxfs/ |
D | xfs_types.c | 28 xfs_agnumber_t agno) in xfs_ag_block_count() argument 30 ASSERT(agno < mp->m_sb.sb_agcount); in xfs_ag_block_count() 32 if (agno < mp->m_sb.sb_agcount - 1) in xfs_ag_block_count() 34 return mp->m_sb.sb_dblocks - (agno * mp->m_sb.sb_agblocks); in xfs_ag_block_count() 44 xfs_agnumber_t agno, in xfs_verify_agbno() argument 49 eoag = xfs_ag_block_count(mp, agno); in xfs_verify_agbno() 66 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, fsbno); in xfs_verify_fsbno() local 68 if (agno >= mp->m_sb.sb_agcount) in xfs_verify_fsbno() 70 return xfs_verify_agbno(mp, agno, XFS_FSB_TO_AGBNO(mp, fsbno)); in xfs_verify_fsbno() 77 xfs_agnumber_t agno, in xfs_agino_range() argument [all …]
|
D | xfs_ialloc.c | 125 xfs_agnumber_t agno = cur->bc_private.a.agno; in xfs_inobt_get_rec() local 136 if (!xfs_verify_agino(mp, agno, irec->ir_startino)) in xfs_inobt_get_rec() 157 cur->bc_btnum == XFS_BTNUM_INO ? "Used" : "Free", agno); in xfs_inobt_get_rec() 198 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); in xfs_inobt_insert() local 203 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, btnum); in xfs_inobt_insert() 284 xfs_agnumber_t agno, in xfs_ialloc_inode_init() argument 327 ino = XFS_AGINO_TO_INO(mp, agno, in xfs_ialloc_inode_init() 339 xfs_icreate_log(tp, agno, agbno, icount, in xfs_ialloc_inode_init() 348 d = XFS_AGB_TO_DADDR(mp, agno, agbno + (j * blks_per_cluster)); in xfs_ialloc_inode_init() 547 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); in xfs_inobt_insert_sprec() local [all …]
|
D | xfs_refcount.c | 51 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_private.a.agno, bno, in xfs_refcount_lookup_le() 68 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_private.a.agno, bno, in xfs_refcount_lookup_ge() 85 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_private.a.agno, bno, in xfs_refcount_lookup_eq() 113 xfs_agnumber_t agno = cur->bc_private.a.agno; in xfs_refcount_get_rec() local 124 agno = cur->bc_private.a.agno; in xfs_refcount_get_rec() 139 if (!xfs_verify_agbno(mp, agno, realstart)) in xfs_refcount_get_rec() 143 if (!xfs_verify_agbno(mp, agno, realstart + irec->rc_blockcount - 1)) in xfs_refcount_get_rec() 149 trace_xfs_refcount_get(cur->bc_mp, cur->bc_private.a.agno, irec); in xfs_refcount_get_rec() 154 "Refcount BTree record corruption in AG %d detected!", agno); in xfs_refcount_get_rec() 174 trace_xfs_refcount_update(cur->bc_mp, cur->bc_private.a.agno, irec); in xfs_refcount_update() [all …]
|
D | xfs_ag.c | 54 xfs_btree_init_block(mp, bp, id->type, 0, 0, id->agno, 0); in xfs_btroot_init() 68 xfs_btree_init_block(mp, bp, XFS_BTNUM_BNO, 0, 1, id->agno, 0); in xfs_bnoroot_init() 83 xfs_btree_init_block(mp, bp, XFS_BTNUM_CNT, 0, 1, id->agno, 0); in xfs_cntroot_init() 102 xfs_btree_init_block(mp, bp, XFS_BTNUM_RMAP, 0, 4, id->agno, 0); in xfs_rmaproot_init() 183 agf->agf_seqno = cpu_to_be32(id->agno); in xfs_agfblock_init() 224 agfl->agfl_seqno = cpu_to_be32(id->agno); in xfs_agflblock_init() 244 agi->agi_seqno = cpu_to_be32(id->agno); in xfs_agiblock_init() 312 .daddr = XFS_AG_DADDR(mp, id->agno, XFS_SB_DADDR), in xfs_ag_init_headers() 319 .daddr = XFS_AG_DADDR(mp, id->agno, XFS_AGF_DADDR(mp)), in xfs_ag_init_headers() 326 .daddr = XFS_AG_DADDR(mp, id->agno, XFS_AGFL_DADDR(mp)), in xfs_ag_init_headers() [all …]
|
D | xfs_rmap.c | 89 trace_xfs_rmap_update(cur->bc_mp, cur->bc_private.a.agno, in xfs_rmap_update() 101 cur->bc_private.a.agno, error, _RET_IP_); in xfs_rmap_update() 117 trace_xfs_rmap_insert(rcur->bc_mp, rcur->bc_private.a.agno, agbno, in xfs_rmap_insert() 137 rcur->bc_private.a.agno, error, _RET_IP_); in xfs_rmap_insert() 153 trace_xfs_rmap_delete(rcur->bc_mp, rcur->bc_private.a.agno, agbno, in xfs_rmap_delete() 168 rcur->bc_private.a.agno, error, _RET_IP_); in xfs_rmap_delete() 196 xfs_agnumber_t agno = cur->bc_private.a.agno; in xfs_rmap_get_rec() local 216 if (!xfs_verify_agbno(mp, agno, irec->rm_startblock)) in xfs_rmap_get_rec() 221 if (!xfs_verify_agbno(mp, agno, in xfs_rmap_get_rec() 235 agno); in xfs_rmap_get_rec() [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_refcount_btree.c | 30 cur->bc_private.a.agbp, cur->bc_private.a.agno); in xfs_refcountbt_dup_cursor() 71 args.fsbno = XFS_AGB_TO_FSB(cur->bc_mp, cur->bc_private.a.agno, in xfs_refcountbt_alloc_block() 80 trace_xfs_refcountbt_alloc_block(cur->bc_mp, cur->bc_private.a.agno, in xfs_refcountbt_alloc_block() 86 ASSERT(args.agno == cur->bc_private.a.agno); in xfs_refcountbt_alloc_block() 112 trace_xfs_refcountbt_free_block(cur->bc_mp, cur->bc_private.a.agno, in xfs_refcountbt_free_block() 178 ASSERT(cur->bc_private.a.agno == be32_to_cpu(agf->agf_seqno)); in xfs_refcountbt_init_ptr_from_cur() 324 xfs_agnumber_t agno) in xfs_refcountbt_init_cursor() argument 329 ASSERT(agno != NULLAGNUMBER); in xfs_refcountbt_init_cursor() 330 ASSERT(agno < mp->m_sb.sb_agcount); in xfs_refcountbt_init_cursor() 343 cur->bc_private.a.agno = agno; in xfs_refcountbt_init_cursor() [all …]
|
D | xfs_alloc.c | 219 xfs_agnumber_t agno = cur->bc_private.a.agno; in xfs_alloc_get_rec() local 234 if (!xfs_verify_agbno(mp, agno, *bno)) in xfs_alloc_get_rec() 238 if (!xfs_verify_agbno(mp, agno, *bno + *len - 1)) in xfs_alloc_get_rec() 246 cur->bc_btnum == XFS_BTNUM_BNO ? "Block" : "Size", agno); in xfs_alloc_get_rec() 658 xfs_agnumber_t agno, /* allocation group number */ in xfs_alloc_read_agfl() argument 664 ASSERT(agno != NULLAGNUMBER); in xfs_alloc_read_agfl() 667 XFS_AG_DADDR(mp, agno, XFS_AGFL_DADDR(mp)), in xfs_alloc_read_agfl() 750 error = xfs_rmap_alloc(args->tp, args->agbp, args->agno, in xfs_alloc_ag_vextent() 763 ASSERT(!xfs_extent_busy_search(args->mp, args->agno, in xfs_alloc_ag_vextent() 801 args->agno, XFS_BTNUM_BNO); in xfs_alloc_ag_vextent_exact() [all …]
|
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-4.19.296/fs/xfs/scrub/ |
D | trace.h | 23 __field(xfs_agnumber_t, agno) 33 __entry->agno = sm->sm_agno; 43 __entry->agno, 62 TP_PROTO(struct xfs_scrub *sc, xfs_agnumber_t agno, 64 TP_ARGS(sc, agno, bno, error, ret_ip), 68 __field(xfs_agnumber_t, agno) 76 __entry->agno = agno; 84 __entry->agno, 128 __field(xfs_agnumber_t, agno) 134 xfs_agnumber_t agno; [all …]
|
D | common.c | 73 xfs_agnumber_t agno, in __xchk_process_error() argument 93 trace_xchk_op_error(sc, agno, bno, *error, in __xchk_process_error() 103 xfs_agnumber_t agno, in xchk_process_error() argument 107 return __xchk_process_error(sc, agno, bno, error, in xchk_process_error() 114 xfs_agnumber_t agno, in xchk_xref_process_error() argument 118 return __xchk_process_error(sc, agno, bno, error, in xchk_xref_process_error() 402 xfs_agnumber_t agno, in xchk_ag_read_headers() argument 410 error = xfs_ialloc_read_agi(mp, sc->tp, agno, agi); in xchk_ag_read_headers() 414 error = xfs_alloc_read_agf(mp, sc->tp, agno, 0, agf); in xchk_ag_read_headers() 418 error = xfs_alloc_read_agfl(mp, sc->tp, agno, agfl); in xchk_ag_read_headers() [all …]
|
D | agheader.c | 37 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_superblock_xref() local 46 error = xchk_ag_init(sc, agno, &sc->sa); in xchk_superblock_xref() 47 if (!xchk_xref_process_error(sc, agno, agbno, &error)) in xchk_superblock_xref() 74 xfs_agnumber_t agno; in xchk_superblock() local 80 agno = sc->sm->sm_agno; in xchk_superblock() 81 if (agno == 0) in xchk_superblock() 84 error = xfs_sb_read_secondary(mp, sc->tp, agno, &bp); in xchk_superblock() 101 if (!xchk_process_error(sc, agno, XFS_SB_BLOCK(mp), &error)) in xchk_superblock() 521 xfs_agnumber_t agno; in xchk_agf() local 531 agno = sc->sa.agno = sc->sm->sm_agno; in xchk_agf() [all …]
|
D | agheader_repair.c | 43 xfs_agnumber_t agno; in xrep_superblock() local 47 agno = sc->sm->sm_agno; in xrep_superblock() 48 if (agno == 0) in xrep_superblock() 51 error = xfs_sb_get_secondary(mp, sc->tp, agno, &bp); in xrep_superblock() 101 if (!xfs_verify_agbno(mp, sc->sa.agno, agbno)) in xrep_agf_check_agfl_block() 126 xfs_agnumber_t agno = sc->sm->sm_agno; in xrep_check_btree_root() local 128 return xfs_verify_agbno(mp, agno, fab->root) && in xrep_check_btree_root() 195 agf->agf_seqno = cpu_to_be32(sc->sa.agno); in xrep_agf_init_header() 196 agf->agf_length = cpu_to_be32(xfs_ag_block_count(mp, sc->sa.agno)); in xrep_agf_init_header() 253 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.agno, in xrep_agf_calc_from_btrees() [all …]
|
D | repair.c | 317 xfs_extent_busy_reuse(sc->mp, sc->sa.agno, bno, in xrep_alloc_ag_block() 319 *fsbno = XFS_AGB_TO_FSB(sc->mp, sc->sa.agno, bno); in xrep_alloc_ag_block() 321 xfs_ag_resv_rmapbt_alloc(sc->mp, sc->sa.agno); in xrep_alloc_ag_block() 330 args.fsbno = XFS_AGB_TO_FSB(args.mp, sc->sa.agno, 0); in xrep_alloc_ag_block() 364 ASSERT(XFS_FSB_TO_AGNO(mp, fsb) == sc->sa.agno); in xrep_init_btblock() 368 xfs_btree_init_block(mp, bp, btnum, 0, 0, sc->sa.agno, 0); in xrep_init_btblock() 490 args.agno = sc->sa.agno; in xrep_fix_freelist() 520 error = xfs_rmap_alloc(sc->tp, sc->sa.agf_bp, sc->sa.agno, agbno, 1, in xrep_put_freelist() 530 xfs_extent_busy_insert(sc->tp, sc->sa.agno, agbno, 1, in xrep_put_freelist() 546 xfs_agnumber_t agno; in xrep_reap_block() local [all …]
|
/linux-4.19.296/fs/xfs/ |
D | xfs_discard.c | 26 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() 52 cur = xfs_allocbt_init_cursor(mp, NULL, agbp, agno, XFS_BTNUM_CNT); in xfs_trim_extents() 83 dbno = XFS_AGB_TO_DADDR(mp, agno, fbno); in xfs_trim_extents() 90 trace_xfs_discard_toosmall(mp, agno, fbno, flen); in xfs_trim_extents() 100 trace_xfs_discard_exclude(mp, agno, fbno, flen); in xfs_trim_extents() 108 if (xfs_extent_busy_search(mp, agno, fbno, flen)) { in xfs_trim_extents() 109 trace_xfs_discard_busy(mp, agno, fbno, flen); in xfs_trim_extents() 113 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 | 95 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, int refcount, 97 TP_ARGS(mp, agno, refcount, caller_ip), 100 __field(xfs_agnumber_t, agno) 106 __entry->agno = agno; 112 __entry->agno, 119 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, int refcount, \ 121 TP_ARGS(mp, agno, refcount, caller_ip)) 133 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno), 134 TP_ARGS(mp, agno), 137 __field(xfs_agnumber_t, agno) [all …]
|
D | xfs_itable.c | 165 xfs_agnumber_t agno, in xfs_bulkstat_ichunk_ra() argument 182 xfs_btree_reada_bufs(mp, agno, agbno, blks_per_cluster, in xfs_bulkstat_ichunk_ra() 263 xfs_agnumber_t agno, in xfs_bulkstat_ag_ichunk() argument 290 error = formatter(mp, XFS_AGINO_TO_INO(mp, agno, agino), in xfs_bulkstat_ag_ichunk() 339 xfs_agnumber_t agno; /* allocation group number */ in xfs_bulkstat() local 350 agno = XFS_INO_TO_AGNO(mp, *lastinop); in xfs_bulkstat() 352 if (agno >= mp->m_sb.sb_agcount || in xfs_bulkstat() 353 *lastinop != XFS_AGINO_TO_INO(mp, agno, agino)) { in xfs_bulkstat() 376 while (agno < mp->m_sb.sb_agcount) { in xfs_bulkstat() 383 error = xfs_ialloc_read_agi(mp, NULL, agno, &agbp); in xfs_bulkstat() [all …]
|
D | xfs_fsops.c | 95 for (id.agno = nagcount - 1; in xfs_growfs_data_private() 96 id.agno >= oagcount; in xfs_growfs_data_private() 97 id.agno--, new -= id.agsize) { in xfs_growfs_data_private() 99 if (id.agno == nagcount - 1) in xfs_growfs_data_private() 101 (id.agno * (xfs_rfsblock_t)mp->m_sb.sb_agblocks); in xfs_growfs_data_private() 154 pag = xfs_perag_get(mp, id.agno); in xfs_growfs_data_private() 532 xfs_agnumber_t agno; in xfs_fs_reserve_ag_blocks() local 538 for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { in xfs_fs_reserve_ag_blocks() 539 pag = xfs_perag_get(mp, agno); in xfs_fs_reserve_ag_blocks() 562 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,
|
D | xfs_fsmap.c | 167 xfs_agnumber_t agno; /* AG number, if applicable */ member 211 if (info->agno == NULLAGNUMBER) in xfs_getfsmap_is_shared() 217 info->agno); in xfs_getfsmap_is_shared() 307 trace_xfs_fsmap_mapping(mp, info->dev, info->agno, rec); in xfs_getfsmap_helper() 353 fsb = XFS_AGB_TO_FSB(mp, cur->bc_private.a.agno, rec->rm_startblock); in xfs_getfsmap_datadev_helper() 371 rec_daddr = XFS_AGB_TO_DADDR(mp, cur->bc_private.a.agno, in xfs_getfsmap_datadev_bnobt_helper() 428 trace_xfs_fsmap_low_key(mp, info->dev, info->agno, &info->low); in xfs_getfsmap_logdev() 429 trace_xfs_fsmap_high_key(mp, info->dev, info->agno, &info->high); in xfs_getfsmap_logdev() 507 trace_xfs_fsmap_low_key(mp, info->dev, info->agno, &info->low); in __xfs_getfsmap_rtdev() 508 trace_xfs_fsmap_high_key(mp, info->dev, info->agno, &info->high); in __xfs_getfsmap_rtdev() [all …]
|
D | xfs_trans_extfree.c | 64 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, start_block); in xfs_trans_free_extent() local 69 trace_xfs_bmap_free_deferred(tp->t_mountp, agno, 0, agbno, ext_len); in xfs_trans_free_extent() 238 xfs_agnumber_t agno; in xfs_agfl_free_finish_item() local 244 agno = XFS_FSB_TO_AGNO(mp, free->xefi_startblock); in xfs_agfl_free_finish_item() 247 trace_xfs_agfl_free_deferred(mp, agno, 0, agbno, free->xefi_blockcount); in xfs_agfl_free_finish_item() 249 error = xfs_alloc_read_agf(mp, tp, agno, 0, &agbp); in xfs_agfl_free_finish_item() 251 error = xfs_free_agfl_block(tp, agno, agbno, agbp, in xfs_agfl_free_finish_item()
|
/linux-4.19.296/fs/jfs/ |
D | jfs_imap.c | 70 #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 863 int iagno, ino, extno, bitno, sword, agno; in diFree() local 897 agno = BLKTOAG(JFS_IP(ip)->agstart, JFS_SBI(ip->i_sb)); in diFree() 901 AG_LOCK(imap, agno); in diFree() 912 AG_UNLOCK(imap, agno); in diFree() 932 AG_UNLOCK(imap, agno); in diFree() 941 if (imap->im_agctl[agno].numfree > imap->im_agctl[agno].numinos) { in diFree() 944 AG_UNLOCK(imap, agno); in diFree() 953 imap->im_agctl[agno].numfree < 96 || in diFree() [all …]
|
D | jfs_discard.c | 83 int agno, agno_end; in jfs_ioc_trim() local 110 agno = BLKTOAG(start, JFS_SBI(ip->i_sb)); in jfs_ioc_trim() 112 while (agno <= agno_end) { in jfs_ioc_trim() 113 trimmed += dbDiscardAG(ip, agno, minlen); in jfs_ioc_trim() 114 agno++; in jfs_ioc_trim()
|
/linux-4.19.296/fs/ext4/ |
D | fsmap.c | 91 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 …]
|