/linux/fs/xfs/libxfs/ |
H A D | xfs_types.c | 48 if (agno >= mp->m_sb.sb_agcount) in xfs_verify_fsbno() 105 if (agno >= mp->m_sb.sb_agcount) in xfs_verify_ino()
|
H A D | xfs_sb.c | 437 sbp->sb_agcount <= 0 || in xfs_validate_sb_common() 458 agcount == 0 || agcount != sbp->sb_agcount || in xfs_validate_sb_common() 636 to->sb_agcount = be32_to_cpu(from->sb_agcount); in __xfs_sb_from_disk() 785 to->sb_agcount = cpu_to_be32(from->sb_agcount); in xfs_sb_to_disk() 993 mp->m_maxagi = mp->m_sb.sb_agcount; in xfs_sb_mount_common() 997 mp->m_agno_log = xfs_highbit32(sbp->sb_agcount - 1) + 1; in xfs_sb_mount_common() 1217 geo->agcount = sbp->sb_agcount; in xfs_fs_geometry()
|
H A D | xfs_ag.h | 257 for_each_perag_range((mp), (agno), (mp)->m_sb.sb_agcount - 1, (pag)) 311 for_each_perag_wrap_at((mp), (start_agno), (mp)->m_sb.sb_agcount, \
|
H A D | xfs_ag.c | 237 return __xfs_ag_block_count(mp, agno, mp->m_sb.sb_agcount, in xfs_ag_block_count() 286 mp->m_sb.sb_agcount, mp->m_sb.sb_dblocks); in xfs_update_last_ag_size() 838 ASSERT(pag->pag_agno == mp->m_sb.sb_agcount - 1); in xfs_ag_shrink_space() 966 ASSERT(pag->pag_agno == pag->pag_mount->m_sb.sb_agcount - 1); in xfs_ag_extend_space()
|
H A D | xfs_fs.h | 272 #define XFS_MAX_DBLOCKS(s) ((xfs_rfsblock_t)(s)->sb_agcount * (s)->sb_agblocks) 273 #define XFS_MIN_DBLOCKS(s) ((xfs_rfsblock_t)((s)->sb_agcount - 1) * \
|
H A D | xfs_alloc.c | 119 return mp->m_sb.sb_agcount * (XFS_ALLOCBT_AGFL_RESERVE + 4); in xfs_alloc_set_aside() 3206 if (bp->b_pag && seqno != mp->m_sb.sb_agcount - 1) in xfs_validate_ag_length() 3491 ASSERT(XFS_FSB_TO_AGNO(mp, target) < mp->m_sb.sb_agcount); in xfs_alloc_vextent_check_args() 3497 if (XFS_FSB_TO_AGNO(mp, target) >= mp->m_sb.sb_agcount || in xfs_alloc_vextent_check_args() 3715 mp->m_sb.sb_agcount, agno, args->pag) { in xfs_alloc_vextent_iterate_ags() 3801 mp->m_sb.sb_agcount), 0); in xfs_alloc_vextent_start_ag() 3812 (mp->m_sb.sb_agcount * rotorstep); in xfs_alloc_vextent_start_ag() 3815 (mp->m_sb.sb_agcount * rotorstep); in xfs_alloc_vextent_start_ag() 3954 if (args.agno >= args.mp->m_sb.sb_agcount) in xfs_free_extent_fix_freelist()
|
H A D | xfs_format.h | 108 xfs_agnumber_t sb_agcount; /* number of allocation groups */ member 197 __be32 sb_agcount; /* number of allocation groups */ member
|
H A D | xfs_refcount_btree.c | 365 ASSERT(pag->pag_agno < mp->m_sb.sb_agcount); in xfs_refcountbt_init_cursor()
|
H A D | xfs_bmap.c | 380 ASSERT(XFS_FSB_TO_AGNO(mp, bno) < mp->m_sb.sb_agcount); in xfs_bmap_check_leaf_extents() 3128 XFS_FSB_TO_AGNO(mp, x) < mp->m_sb.sb_agcount && in xfs_bmap_adjacent_valid()
|
/linux/fs/xfs/ |
H A D | xfs_filestream.c | 278 agno = (item->pag->pag_agno + 1) % mp->m_sb.sb_agcount; in xfs_filestream_create_association() 283 agno = (mp->m_agfrotor / rotorstep) % mp->m_sb.sb_agcount; in xfs_filestream_create_association() 285 (mp->m_sb.sb_agcount * rotorstep); in xfs_filestream_create_association()
|
H A D | xfs_iwalk.c | 570 ASSERT(agno < mp->m_sb.sb_agcount); in xfs_iwalk() 648 ASSERT(agno < mp->m_sb.sb_agcount); in xfs_iwalk_threaded() 755 ASSERT(agno < mp->m_sb.sb_agcount); in xfs_inobt_walk()
|
H A D | xfs_mount.c | 528 error = xfs_initialize_perag_data(mp, mp->m_sb.sb_agcount); in xfs_check_summary_counts() 813 error = xfs_initialize_perag(mp, 0, sbp->sb_agcount, in xfs_mountfs() 1051 xfs_free_perag_range(mp, 0, mp->m_sb.sb_agcount); in xfs_mountfs() 1132 xfs_free_perag_range(mp, 0, mp->m_sb.sb_agcount); in xfs_unmountfs()
|
H A D | xfs_buf_item_recover.c | 706 xfs_agnumber_t orig_agcount = mp->m_sb.sb_agcount; in xlog_recover_do_primary_sb_buffer() 721 if (mp->m_sb.sb_agcount < orig_agcount) { in xlog_recover_do_primary_sb_buffer() 741 error = xfs_initialize_perag(mp, orig_agcount, mp->m_sb.sb_agcount, in xlog_recover_do_primary_sb_buffer()
|
H A D | xfs_icreate_item.c | 173 if (agno >= mp->m_sb.sb_agcount) { in xlog_recover_icreate_commit_pass2()
|
H A D | xfs_trans.c | 530 be32_add_cpu(&sbp->sb_agcount, tp->t_agcount_delta); in xfs_trans_apply_sb_deltas() 660 mp->m_sb.sb_agcount += tp->t_agcount_delta; in xfs_trans_unreserve_and_mod_sb()
|
H A D | xfs_fsops.c | 90 xfs_agnumber_t oagcount = mp->m_sb.sb_agcount; in xfs_growfs_data_private()
|
H A D | xfs_ioctl.c | 213 if (hdr->agno >= mp->m_sb.sb_agcount) in xfs_bulk_ireq_setup() 230 if (XFS_INO_TO_AGNO(mp, breq->startino) >= mp->m_sb.sb_agcount) in xfs_bulk_ireq_setup()
|
H A D | xfs_super.c | 1960 mp->m_maxagi = xfs_set_inode_alloc(mp, mp->m_sb.sb_agcount); in xfs_fs_reconfigure() 1966 mp->m_maxagi = xfs_set_inode_alloc(mp, mp->m_sb.sb_agcount); in xfs_fs_reconfigure()
|
/linux/fs/xfs/scrub/ |
H A D | scrub.c | 485 sm->sm_agno >= mp->m_sb.sb_agcount) in xchk_validate_inputs()
|