/linux-4.1.27/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_extent_busy.c | 37 xfs_agnumber_t agno, in xfs_extent_busy_insert() argument 55 trace_xfs_extent_busy_enomem(tp->t_mountp, agno, bno, len); in xfs_extent_busy_insert() 60 new->agno = agno; in xfs_extent_busy_insert() 67 trace_xfs_extent_busy(tp->t_mountp, agno, bno, len); in xfs_extent_busy_insert() 69 pag = xfs_perag_get(tp->t_mountp, new->agno); in xfs_extent_busy_insert() 107 xfs_agnumber_t agno, in xfs_extent_busy_search() argument 116 pag = xfs_perag_get(mp, agno); in xfs_extent_busy_search() 307 xfs_agnumber_t agno, in xfs_extent_busy_reuse() argument 317 pag = xfs_perag_get(mp, agno); in xfs_extent_busy_reuse() 521 trace_xfs_extent_busy_trim(args->mp, args->agno, bno, len, in xfs_extent_busy_trim() [all …]
|
D | xfs_itable.c | 178 xfs_agnumber_t agno, in xfs_bulkstat_ichunk_ra() argument 195 xfs_btree_reada_bufs(mp, agno, agbno, blks_per_cluster, in xfs_bulkstat_ichunk_ra() 276 xfs_agnumber_t agno, in xfs_bulkstat_ag_ichunk() argument 303 error = formatter(mp, XFS_AGINO_TO_INO(mp, agno, agino), in xfs_bulkstat_ag_ichunk() 352 xfs_agnumber_t agno; /* allocation group number */ in xfs_bulkstat() local 364 agno = XFS_INO_TO_AGNO(mp, *lastinop); in xfs_bulkstat() 366 if (agno >= mp->m_sb.sb_agcount || in xfs_bulkstat() 367 *lastinop != XFS_AGINO_TO_INO(mp, agno, agino)) { in xfs_bulkstat() 391 while (agno < mp->m_sb.sb_agcount) { in xfs_bulkstat() 398 error = xfs_ialloc_read_agi(mp, NULL, agno, &agbp); in xfs_bulkstat() [all …]
|
D | xfs_fsops.c | 149 xfs_agnumber_t agno; in xfs_growfs_data_private() local 214 for (agno = nagcount - 1; agno >= oagcount; agno--, new -= agsize) { in xfs_growfs_data_private() 221 XFS_AG_DADDR(mp, agno, XFS_AGF_DADDR(mp)), in xfs_growfs_data_private() 232 agf->agf_seqno = cpu_to_be32(agno); in xfs_growfs_data_private() 233 if (agno == nagcount - 1) in xfs_growfs_data_private() 236 (agno * (xfs_rfsblock_t)mp->m_sb.sb_agblocks); in xfs_growfs_data_private() 262 XFS_AG_DADDR(mp, agno, XFS_AGFL_DADDR(mp)), in xfs_growfs_data_private() 273 agfl->agfl_seqno = cpu_to_be32(agno); in xfs_growfs_data_private() 290 XFS_AG_DADDR(mp, agno, XFS_AGI_DADDR(mp)), in xfs_growfs_data_private() 301 agi->agi_seqno = cpu_to_be32(agno); in xfs_growfs_data_private() [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_trace.h | 103 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, int refcount, 105 TP_ARGS(mp, agno, refcount, caller_ip), 108 __field(xfs_agnumber_t, agno) 114 __entry->agno = agno; 120 __entry->agno, 127 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, int refcount, \ 129 TP_ARGS(mp, agno, refcount, caller_ip)) 139 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno), 140 TP_ARGS(mp, agno), 143 __field(xfs_agnumber_t, agno) [all …]
|
D | xfs_filestream.c | 84 xfs_agnumber_t agno) in xfs_filestream_peek_ag() argument 89 pag = xfs_perag_get(mp, agno); in xfs_filestream_peek_ag() 98 xfs_agnumber_t agno) in xfs_filestream_get_ag() argument 103 pag = xfs_perag_get(mp, agno); in xfs_filestream_get_ag() 112 xfs_agnumber_t agno) in xfs_filestream_put_ag() argument 116 pag = xfs_perag_get(mp, agno); in xfs_filestream_put_ag()
|
D | xfs_icreate_item.c | 162 xfs_agnumber_t agno, in xfs_icreate_log() argument 178 icp->ic_format.icl_ag = cpu_to_be32(agno); in xfs_icreate_log()
|
D | xfs_icreate_item.h | 29 void xfs_icreate_log(struct xfs_trans *tp, xfs_agnumber_t agno,
|
D | xfs_log_recover.c | 3033 xfs_agnumber_t agno; in xlog_recover_do_icreate_pass2() local 3050 agno = be32_to_cpu(icl->icl_ag); in xlog_recover_do_icreate_pass2() 3051 if (agno >= mp->m_sb.sb_agcount) { in xlog_recover_do_icreate_pass2() 3096 XFS_AGB_TO_DADDR(mp, agno, agbno), length, 0)) in xlog_recover_do_icreate_pass2() 3099 xfs_ialloc_inode_init(mp, NULL, buffer_list, agno, agbno, length, in xlog_recover_do_icreate_pass2() 3845 xfs_agnumber_t agno, in xlog_recover_clear_agi_bucket() argument 3859 error = xfs_read_agi(mp, tp, agno, &agibp); in xlog_recover_clear_agi_bucket() 3878 xfs_warn(mp, "%s: failed to clear agi %d. Continuing.", __func__, agno); in xlog_recover_clear_agi_bucket() 3885 xfs_agnumber_t agno, in xlog_recover_process_one_iunlink() argument 3895 ino = XFS_AGINO_TO_INO(mp, agno, agino); in xlog_recover_process_one_iunlink() [all …]
|
D | xfs_filestream.h | 30 int xfs_filestream_peek_ag(struct xfs_mount *mp, xfs_agnumber_t agno);
|
D | xfs_mount.c | 138 xfs_agnumber_t agno; in xfs_free_perag() local 141 for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { in xfs_free_perag() 143 pag = radix_tree_delete(&mp->m_perag_tree, agno); in xfs_free_perag()
|
D | xfs_inode.c | 2071 xfs_agnumber_t agno; in xfs_iunlink_remove() local 2081 agno = XFS_INO_TO_AGNO(mp, ip->i_ino); in xfs_iunlink_remove() 2087 error = xfs_read_agi(mp, tp, agno, &agibp); in xfs_iunlink_remove() 2159 next_ino = XFS_AGINO_TO_INO(mp, agno, next_agino); in xfs_iunlink_remove()
|
/linux-4.1.27/fs/xfs/libxfs/ |
D | xfs_ialloc.c | 140 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); in xfs_inobt_insert() local 145 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, btnum); in xfs_inobt_insert() 223 xfs_agnumber_t agno, in xfs_ialloc_inode_init() argument 266 ino = XFS_AGINO_TO_INO(mp, agno, in xfs_ialloc_inode_init() 278 xfs_icreate_log(tp, agno, agbno, mp->m_ialloc_inos, in xfs_ialloc_inode_init() 287 d = XFS_AGB_TO_DADDR(mp, agno, agbno + (j * blks_per_cluster)); in xfs_ialloc_inode_init() 361 xfs_agnumber_t agno; in xfs_ialloc_ag_alloc() local 390 agno = be32_to_cpu(agi->agi_seqno); in xfs_ialloc_ag_alloc() 395 args.fsbno = XFS_AGB_TO_FSB(args.mp, agno, args.agbno); in xfs_ialloc_ag_alloc() 456 args.fsbno = XFS_AGB_TO_FSB(args.mp, agno, args.agbno); in xfs_ialloc_ag_alloc() [all …]
|
D | xfs_alloc.c | 533 xfs_agnumber_t agno, /* allocation group number */ in xfs_alloc_read_agfl() argument 539 ASSERT(agno != NULLAGNUMBER); in xfs_alloc_read_agfl() 542 XFS_AG_DADDR(mp, agno, XFS_AGFL_DADDR(mp)), in xfs_alloc_read_agfl() 629 ASSERT(!xfs_extent_busy_search(args->mp, args->agno, in xfs_alloc_ag_vextent() 671 args->agno, XFS_BTNUM_BNO); in xfs_alloc_ag_vextent_exact() 729 args->agno, XFS_BTNUM_CNT); in xfs_alloc_ag_vextent_exact() 898 args->agno, XFS_BTNUM_CNT); in xfs_alloc_ag_vextent_near() 1026 args->agbp, args->agno, XFS_BTNUM_BNO); in xfs_alloc_ag_vextent_near() 1055 args->agno, XFS_BTNUM_BNO); in xfs_alloc_ag_vextent_near() 1270 args->agno, XFS_BTNUM_CNT); in xfs_alloc_ag_vextent_size() [all …]
|
D | xfs_ialloc.h | 130 xfs_agnumber_t agno, /* allocation group number */ 141 xfs_agnumber_t agno); /* allocation group number */ 160 xfs_agnumber_t agno, xfs_agblock_t agbno, 164 xfs_agnumber_t agno, struct xfs_buf **bpp);
|
D | xfs_alloc.h | 105 xfs_agnumber_t agno; /* allocation group number */ member 172 xfs_agnumber_t agno, /* allocation group number */ 193 xfs_agnumber_t agno, /* allocation group number */ 235 xfs_agnumber_t agno, int flags, struct xfs_buf **bpp);
|
D | xfs_ialloc_btree.c | 50 cur->bc_private.a.agbp, cur->bc_private.a.agno, in xfs_inobt_dup_cursor() 99 args.fsbno = XFS_AGB_TO_FSB(args.mp, cur->bc_private.a.agno, sbno); in xfs_inobt_alloc_block() 184 ASSERT(cur->bc_private.a.agno == be32_to_cpu(agi->agi_seqno)); in xfs_inobt_init_ptr_from_cur() 196 ASSERT(cur->bc_private.a.agno == be32_to_cpu(agi->agi_seqno)); in xfs_finobt_init_ptr_from_cur() 376 xfs_agnumber_t agno, /* allocation group number */ in xfs_inobt_init_cursor() argument 401 cur->bc_private.a.agno = agno; in xfs_inobt_init_cursor()
|
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() 245 ASSERT(cur->bc_private.a.agno == be32_to_cpu(agf->agf_seqno)); in xfs_allocbt_init_ptr_from_cur() 457 xfs_agnumber_t agno, /* allocation group number */ in xfs_allocbt_init_cursor() argument 481 cur->bc_private.a.agno = agno; in xfs_allocbt_init_cursor()
|
D | xfs_btree.h | 214 xfs_agnumber_t agno; /* ag number */ member 300 xfs_agnumber_t agno, /* allocation group number */ 356 xfs_agnumber_t agno, /* allocation group number */
|
D | xfs_dir2.c | 198 xfs_agnumber_t agno; in xfs_dir_ino_validate() local 202 agno = XFS_INO_TO_AGNO(mp, ino); in xfs_dir_ino_validate() 207 agno < mp->m_sb.sb_agcount && in xfs_dir_ino_validate() 211 XFS_AGINO_TO_INO(mp, agno, agino) == ino; in xfs_dir_ino_validate()
|
D | xfs_format.h | 774 #define XFS_AGB_TO_FSB(mp,agno,agbno) \ argument 775 (((xfs_fsblock_t)(agno) << (mp)->m_sb.sb_agblklog) | (agbno)) 780 #define XFS_AGB_TO_DADDR(mp,agno,agbno) \ argument 782 (xfs_fsblock_t)(agno) * (mp)->m_sb.sb_agblocks + (agbno))) 783 #define XFS_AG_DADDR(mp,agno,d) (XFS_AGB_TO_DADDR(mp, agno, 0) + (d)) argument
|
D | xfs_sb.c | 51 xfs_agnumber_t agno) in xfs_perag_get() argument 57 pag = radix_tree_lookup(&mp->m_perag_tree, agno); in xfs_perag_get() 63 trace_xfs_perag_get(mp, agno, ref, _RET_IP_); in xfs_perag_get()
|
D | xfs_btree.c | 570 xfs_agnumber_t agno, /* allocation group number */ in xfs_btree_get_bufs() argument 576 ASSERT(agno != NULLAGNUMBER); in xfs_btree_get_bufs() 578 d = XFS_AGB_TO_DADDR(mp, agno, agbno); in xfs_btree_get_bufs() 752 xfs_agnumber_t agno, /* allocation group number */ in xfs_btree_reada_bufs() argument 759 ASSERT(agno != NULLAGNUMBER); in xfs_btree_reada_bufs() 761 d = XFS_AGB_TO_DADDR(mp, agno, agbno); in xfs_btree_reada_bufs() 802 xfs_btree_reada_bufs(cur->bc_mp, cur->bc_private.a.agno, in xfs_btree_readahead_sblock() 808 xfs_btree_reada_bufs(cur->bc_mp, cur->bc_private.a.agno, in xfs_btree_readahead_sblock() 857 ASSERT(cur->bc_private.a.agno != NULLAGNUMBER); in xfs_btree_ptr_to_daddr() 860 return XFS_AGB_TO_DADDR(cur->bc_mp, cur->bc_private.a.agno, in xfs_btree_ptr_to_daddr() [all …]
|
D | xfs_bmap.c | 579 xfs_agnumber_t agno; in xfs_bmap_add_free() local 586 agno = XFS_FSB_TO_AGNO(mp, bno); in xfs_bmap_add_free() 588 ASSERT(agno < mp->m_sb.sb_agcount); in xfs_bmap_add_free() 804 args.agno == XFS_FSB_TO_AGNO(mp, *firstblock) || in xfs_bmap_extents_to_btree() 806 args.agno > XFS_FSB_TO_AGNO(mp, *firstblock))); in xfs_bmap_extents_to_btree() 3864 ASSERT(nullfb || fb_agno == args.agno || in xfs_bmap_btalloc() 3865 (ap->flist->xbf_low && fb_agno < args.agno)); in xfs_bmap_btalloc()
|
/linux-4.1.27/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 869 int iagno, ino, extno, bitno, sword, agno; in diFree() local 903 agno = BLKTOAG(JFS_IP(ip)->agstart, JFS_SBI(ip->i_sb)); in diFree() 907 AG_LOCK(imap, agno); in diFree() 918 AG_UNLOCK(imap, agno); in diFree() 938 AG_UNLOCK(imap, agno); in diFree() 947 if (imap->im_agctl[agno].numfree > imap->im_agctl[agno].numinos) { in diFree() 950 AG_UNLOCK(imap, agno); in diFree() 959 imap->im_agctl[agno].numfree < 96 || in diFree() [all …]
|
D | jfs_discard.c | 85 int agno, agno_end; in jfs_ioc_trim() local 112 agno = BLKTOAG(start, JFS_SBI(ip->i_sb)); in jfs_ioc_trim() 114 while (agno <= agno_end) { in jfs_ioc_trim() 115 trimmed += dbDiscardAG(ip, agno, minlen); in jfs_ioc_trim() 116 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 …]
|
D | jfs_dmap.h | 314 extern s64 dbDiscardAG(struct inode *ip, int agno, s64 minlen);
|