/fs/xfs/ |
D | xfs_discard.c | 38 xfs_agnumber_t agno, in xfs_trim_extents() argument 51 pag = xfs_perag_get(mp, agno); in xfs_trim_extents() 53 error = xfs_alloc_read_agf(mp, NULL, agno, 0, &agbp); in xfs_trim_extents() 57 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 …]
|
D | xfs_fsops.c | 159 xfs_agnumber_t agno; in xfs_growfs_data_private() local 220 for (agno = nagcount - 1; agno >= oagcount; agno--, new -= agsize) { in xfs_growfs_data_private() 227 XFS_AG_DADDR(mp, agno, XFS_AGF_DADDR(mp)), in xfs_growfs_data_private() 238 agf->agf_seqno = cpu_to_be32(agno); in xfs_growfs_data_private() 239 if (agno == nagcount - 1) in xfs_growfs_data_private() 242 (agno * (xfs_rfsblock_t)mp->m_sb.sb_agblocks); in xfs_growfs_data_private() 281 XFS_AG_DADDR(mp, agno, XFS_AGFL_DADDR(mp)), in xfs_growfs_data_private() 292 agfl->agfl_seqno = cpu_to_be32(agno); in xfs_growfs_data_private() 309 XFS_AG_DADDR(mp, agno, XFS_AGI_DADDR(mp)), in xfs_growfs_data_private() 320 agi->agi_seqno = cpu_to_be32(agno); in xfs_growfs_data_private() [all …]
|
D | xfs_extent_busy.c | 37 xfs_agnumber_t agno, in xfs_extent_busy_insert() argument 49 new->agno = agno; in xfs_extent_busy_insert() 56 trace_xfs_extent_busy(tp->t_mountp, agno, bno, len); in xfs_extent_busy_insert() 58 pag = xfs_perag_get(tp->t_mountp, new->agno); in xfs_extent_busy_insert() 96 xfs_agnumber_t agno, in xfs_extent_busy_search() argument 105 pag = xfs_perag_get(mp, agno); in xfs_extent_busy_search() 296 xfs_agnumber_t agno, in xfs_extent_busy_reuse() argument 306 pag = xfs_perag_get(mp, agno); in xfs_extent_busy_reuse() 510 trace_xfs_extent_busy_trim(args->mp, args->agno, bno, len, in xfs_extent_busy_trim() 522 trace_xfs_extent_busy_trim(args->mp, args->agno, bno, len, fbno, 0); in xfs_extent_busy_trim() [all …]
|
D | xfs_trace.h | 105 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, int refcount, 107 TP_ARGS(mp, agno, refcount, caller_ip), 110 __field(xfs_agnumber_t, agno) 116 __entry->agno = agno; 122 __entry->agno, 129 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, int refcount, \ 131 TP_ARGS(mp, agno, refcount, caller_ip)) 143 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno), 144 TP_ARGS(mp, agno), 147 __field(xfs_agnumber_t, agno) [all …]
|
D | xfs_itable.c | 188 xfs_agnumber_t agno, in xfs_bulkstat_ichunk_ra() argument 205 xfs_btree_reada_bufs(mp, agno, agbno, blks_per_cluster, in xfs_bulkstat_ichunk_ra() 286 xfs_agnumber_t agno, in xfs_bulkstat_ag_ichunk() argument 313 error = formatter(mp, XFS_AGINO_TO_INO(mp, agno, agino), in xfs_bulkstat_ag_ichunk() 362 xfs_agnumber_t agno; /* allocation group number */ in xfs_bulkstat() local 373 agno = XFS_INO_TO_AGNO(mp, *lastinop); in xfs_bulkstat() 375 if (agno >= mp->m_sb.sb_agcount || in xfs_bulkstat() 376 *lastinop != XFS_AGINO_TO_INO(mp, agno, agino)) { in xfs_bulkstat() 399 while (agno < mp->m_sb.sb_agcount) { in xfs_bulkstat() 406 error = xfs_ialloc_read_agi(mp, NULL, agno, &agbp); in xfs_bulkstat() [all …]
|
D | xfs_extent_busy.h | 37 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,
|
D | xfs_filestream.c | 86 xfs_agnumber_t agno) in xfs_filestream_peek_ag() argument 91 pag = xfs_perag_get(mp, agno); in xfs_filestream_peek_ag() 100 xfs_agnumber_t agno) in xfs_filestream_get_ag() argument 105 pag = xfs_perag_get(mp, agno); in xfs_filestream_get_ag() 114 xfs_agnumber_t agno) in xfs_filestream_put_ag() argument 118 pag = xfs_perag_get(mp, agno); in xfs_filestream_put_ag()
|
D | xfs_reflink.c | 158 xfs_agnumber_t agno, in xfs_reflink_find_shared() argument 169 error = xfs_alloc_read_agf(mp, NULL, agno, 0, &agbp); in xfs_reflink_find_shared() 175 cur = xfs_refcountbt_init_cursor(mp, NULL, agbp, agno, NULL); in xfs_reflink_find_shared() 203 xfs_agnumber_t agno; in xfs_reflink_trim_around_shared() local 222 agno = XFS_FSB_TO_AGNO(ip->i_mount, irec->br_startblock); in xfs_reflink_trim_around_shared() 226 error = xfs_reflink_find_shared(ip->i_mount, agno, agbno, in xfs_reflink_trim_around_shared() 865 xfs_agnumber_t agno; in xfs_reflink_recover_cow() local 871 for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { in xfs_reflink_recover_cow() 872 error = xfs_refcount_recover_cow_leftovers(mp, agno); in xfs_reflink_recover_cow() 1073 xfs_agnumber_t agno) in xfs_reflink_ag_has_free_space() argument [all …]
|
/fs/xfs/libxfs/ |
D | xfs_ialloc.c | 170 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); in xfs_inobt_insert() local 175 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, btnum); in xfs_inobt_insert() 256 xfs_agnumber_t agno, in xfs_ialloc_inode_init() argument 299 ino = XFS_AGINO_TO_INO(mp, agno, in xfs_ialloc_inode_init() 311 xfs_icreate_log(tp, agno, agbno, icount, in xfs_ialloc_inode_init() 320 d = XFS_AGB_TO_DADDR(mp, agno, agbno + (j * blks_per_cluster)); in xfs_ialloc_inode_init() 519 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); in xfs_inobt_insert_sprec() local 524 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, btnum); in xfs_inobt_insert_sprec() 562 trace_xfs_irec_merge_pre(mp, agno, rec.ir_startino, in xfs_inobt_insert_sprec() 569 trace_xfs_irec_merge_post(mp, agno, nrec->ir_startino, in xfs_inobt_insert_sprec() [all …]
|
D | xfs_refcount.c | 66 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_private.a.agno, bno, in xfs_refcount_lookup_le() 83 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_private.a.agno, bno, in xfs_refcount_lookup_ge() 116 trace_xfs_refcount_get(cur->bc_mp, cur->bc_private.a.agno, in xfs_refcount_get_rec() 135 trace_xfs_refcount_update(cur->bc_mp, cur->bc_private.a.agno, irec); in xfs_refcount_update() 142 cur->bc_private.a.agno, error, _RET_IP_); in xfs_refcount_update() 159 trace_xfs_refcount_insert(cur->bc_mp, cur->bc_private.a.agno, irec); in xfs_refcount_insert() 168 cur->bc_private.a.agno, error, _RET_IP_); in xfs_refcount_insert() 191 trace_xfs_refcount_delete(cur->bc_mp, cur->bc_private.a.agno, &irec); in xfs_refcount_delete() 200 cur->bc_private.a.agno, error, _RET_IP_); in xfs_refcount_delete() 317 trace_xfs_refcount_split_extent(cur->bc_mp, cur->bc_private.a.agno, in xfs_refcount_split_extent() [all …]
|
D | xfs_rmap.c | 99 trace_xfs_rmap_update(cur->bc_mp, cur->bc_private.a.agno, in xfs_rmap_update() 111 cur->bc_private.a.agno, error, _RET_IP_); in xfs_rmap_update() 127 trace_xfs_rmap_insert(rcur->bc_mp, rcur->bc_private.a.agno, agbno, in xfs_rmap_insert() 147 rcur->bc_private.a.agno, error, _RET_IP_); in xfs_rmap_insert() 163 trace_xfs_rmap_delete(rcur->bc_mp, rcur->bc_private.a.agno, agbno, in xfs_rmap_delete() 178 rcur->bc_private.a.agno, error, _RET_IP_); in xfs_rmap_delete() 230 cur->bc_private.a.agno, rec->rm_startblock, in xfs_rmap_find_left_neighbor_helper() 282 cur->bc_private.a.agno, bno, 0, owner, offset, flags); in xfs_rmap_find_left_neighbor() 290 cur->bc_private.a.agno, irec->rm_startblock, in xfs_rmap_find_left_neighbor() 306 cur->bc_private.a.agno, rec->rm_startblock, in xfs_rmap_lookup_le_range_helper() [all …]
|
D | xfs_alloc.c | 609 xfs_agnumber_t agno, /* allocation group number */ in xfs_alloc_read_agfl() argument 615 ASSERT(agno != NULLAGNUMBER); in xfs_alloc_read_agfl() 618 XFS_AG_DADDR(mp, agno, XFS_AGFL_DADDR(mp)), in xfs_alloc_read_agfl() 701 error = xfs_rmap_alloc(args->tp, args->agbp, args->agno, in xfs_alloc_ag_vextent() 714 ASSERT(!xfs_extent_busy_search(args->mp, args->agno, in xfs_alloc_ag_vextent() 751 args->agno, XFS_BTNUM_BNO); in xfs_alloc_ag_vextent_exact() 806 args->agno, XFS_BTNUM_CNT); in xfs_alloc_ag_vextent_exact() 990 args->agno, XFS_BTNUM_CNT); in xfs_alloc_ag_vextent_near() 1115 args->agbp, args->agno, XFS_BTNUM_BNO); in xfs_alloc_ag_vextent_near() 1144 args->agno, XFS_BTNUM_BNO); in xfs_alloc_ag_vextent_near() [all …]
|
D | xfs_refcount_btree.c | 44 cur->bc_private.a.agbp, cur->bc_private.a.agno, in xfs_refcountbt_dup_cursor() 88 args.fsbno = XFS_AGB_TO_FSB(cur->bc_mp, cur->bc_private.a.agno, in xfs_refcountbt_alloc_block() 98 trace_xfs_refcountbt_alloc_block(cur->bc_mp, cur->bc_private.a.agno, in xfs_refcountbt_alloc_block() 105 ASSERT(args.agno == cur->bc_private.a.agno); in xfs_refcountbt_alloc_block() 133 trace_xfs_refcountbt_free_block(cur->bc_mp, cur->bc_private.a.agno, in xfs_refcountbt_free_block() 199 ASSERT(cur->bc_private.a.agno == be32_to_cpu(agf->agf_seqno)); in xfs_refcountbt_init_ptr_from_cur() 342 xfs_agnumber_t agno, in xfs_refcountbt_init_cursor() argument 348 ASSERT(agno != NULLAGNUMBER); in xfs_refcountbt_init_cursor() 349 ASSERT(agno < mp->m_sb.sb_agcount); in xfs_refcountbt_init_cursor() 361 cur->bc_private.a.agno = agno; in xfs_refcountbt_init_cursor() [all …]
|
D | xfs_ialloc_btree.c | 51 cur->bc_private.a.agbp, cur->bc_private.a.agno, in xfs_inobt_dup_cursor() 102 args.fsbno = XFS_AGB_TO_FSB(args.mp, cur->bc_private.a.agno, sbno); in __xfs_inobt_alloc_block() 206 ASSERT(cur->bc_private.a.agno == be32_to_cpu(agi->agi_seqno)); in xfs_inobt_init_ptr_from_cur() 218 ASSERT(cur->bc_private.a.agno == be32_to_cpu(agi->agi_seqno)); in xfs_finobt_init_ptr_from_cur() 377 xfs_agnumber_t agno, /* allocation group number */ in xfs_inobt_init_cursor() argument 402 cur->bc_private.a.agno = agno; in xfs_inobt_init_cursor() 521 xfs_agnumber_t agno, in xfs_inobt_count_blocks() argument 529 error = xfs_ialloc_read_agi(mp, NULL, agno, &agbp); in xfs_inobt_count_blocks() 533 cur = xfs_inobt_init_cursor(mp, NULL, agbp, agno, btnum); in xfs_inobt_count_blocks() 547 xfs_agnumber_t agno, in xfs_finobt_calc_reserves() argument [all …]
|
D | xfs_alloc.h | 73 xfs_agnumber_t agno; /* allocation group number */ member 161 xfs_agnumber_t agno, /* allocation group number */ 182 xfs_agnumber_t agno, /* allocation group number */ 219 xfs_agnumber_t agno, int flags, struct xfs_buf **bpp); 221 int xfs_free_extent_fix_freelist(struct xfs_trans *tp, xfs_agnumber_t agno,
|
D | xfs_ialloc.h | 135 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);
|
D | xfs_rmap_btree.c | 70 cur->bc_private.a.agbp, cur->bc_private.a.agno); in xfs_rmapbt_dup_cursor() 117 trace_xfs_rmapbt_alloc_block(cur->bc_mp, cur->bc_private.a.agno, in xfs_rmapbt_alloc_block() 125 xfs_extent_busy_reuse(cur->bc_mp, cur->bc_private.a.agno, bno, 1, in xfs_rmapbt_alloc_block() 149 trace_xfs_rmapbt_free_block(cur->bc_mp, cur->bc_private.a.agno, in xfs_rmapbt_free_block() 238 ASSERT(cur->bc_private.a.agno == be32_to_cpu(agf->agf_seqno)); in xfs_rmapbt_init_ptr_from_cur() 473 xfs_agnumber_t agno) in xfs_rmapbt_init_cursor() argument 489 cur->bc_private.a.agno = agno; in xfs_rmapbt_init_cursor() 568 xfs_agnumber_t agno, in xfs_rmapbt_calc_reserves() argument 581 error = xfs_alloc_read_agf(mp, NULL, agno, 0, &agbp); in xfs_rmapbt_calc_reserves()
|
D | xfs_ag_resv.c | 244 xfs_agnumber_t agno = pag->pag_agno; in xfs_ag_resv_init() local 253 error = xfs_refcountbt_calc_reserves(mp, agno, &ask, &used); in xfs_ag_resv_init() 257 error = xfs_finobt_calc_reserves(mp, agno, &ask, &used); in xfs_ag_resv_init() 275 error = xfs_refcountbt_calc_reserves(mp, agno, &ask, in xfs_ag_resv_init() 291 error = xfs_rmapbt_calc_reserves(mp, agno, &ask, &used); in xfs_ag_resv_init()
|
D | xfs_rmap.h | 139 xfs_agnumber_t agno, xfs_agblock_t bno, xfs_extlen_t len, 142 xfs_agnumber_t agno, xfs_agblock_t bno, xfs_extlen_t len, 196 xfs_agnumber_t agno, xfs_agblock_t bno, xfs_extlen_t len, 199 xfs_agnumber_t agno, xfs_agblock_t bno, xfs_extlen_t len,
|
D | xfs_alloc_btree.c | 41 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() 232 ASSERT(cur->bc_private.a.agno == be32_to_cpu(agf->agf_seqno)); in xfs_allocbt_init_ptr_from_cur() 416 xfs_agnumber_t agno, /* allocation group number */ in xfs_allocbt_init_cursor() argument 440 cur->bc_private.a.agno = agno; in xfs_allocbt_init_cursor()
|
D | xfs_refcount_btree.h | 61 struct xfs_trans *tp, struct xfs_buf *agbp, xfs_agnumber_t agno, 73 xfs_agnumber_t agno, xfs_extlen_t *ask, xfs_extlen_t *used);
|
D | xfs_rmap_btree.h | 57 xfs_agnumber_t agno); 67 xfs_agnumber_t agno, xfs_extlen_t *ask, xfs_extlen_t *used);
|
/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 868 int iagno, ino, extno, bitno, sword, agno; in diFree() local 902 agno = BLKTOAG(JFS_IP(ip)->agstart, JFS_SBI(ip->i_sb)); in diFree() 906 AG_LOCK(imap, agno); in diFree() 917 AG_UNLOCK(imap, agno); in diFree() 937 AG_UNLOCK(imap, agno); in diFree() 946 if (imap->im_agctl[agno].numfree > imap->im_agctl[agno].numinos) { in diFree() 949 AG_UNLOCK(imap, agno); in diFree() 958 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()
|
D | jfs_dmap.c | 96 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 …]
|