Home
last modified time | relevance | path

Searched refs:sb_agcount (Results 1 – 19 of 19) sorted by relevance

/linux/fs/xfs/libxfs/
H A Dxfs_types.c48 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 Dxfs_sb.c437 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 Dxfs_ag.h257 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 Dxfs_ag.c237 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 Dxfs_fs.h272 #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 Dxfs_alloc.c119 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 Dxfs_format.h108 xfs_agnumber_t sb_agcount; /* number of allocation groups */ member
197 __be32 sb_agcount; /* number of allocation groups */ member
H A Dxfs_refcount_btree.c365 ASSERT(pag->pag_agno < mp->m_sb.sb_agcount); in xfs_refcountbt_init_cursor()
H A Dxfs_bmap.c380 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 Dxfs_filestream.c278 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 Dxfs_iwalk.c570 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 Dxfs_mount.c528 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 Dxfs_buf_item_recover.c706 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 Dxfs_icreate_item.c173 if (agno >= mp->m_sb.sb_agcount) { in xlog_recover_icreate_commit_pass2()
H A Dxfs_trans.c530 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 Dxfs_fsops.c90 xfs_agnumber_t oagcount = mp->m_sb.sb_agcount; in xfs_growfs_data_private()
H A Dxfs_ioctl.c213 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 Dxfs_super.c1960 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 Dscrub.c485 sm->sm_agno >= mp->m_sb.sb_agcount) in xchk_validate_inputs()