Home
last modified time | relevance | path

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

/Linux-v5.15/fs/xfs/libxfs/
Dxfs_types.c22 ASSERT(agno < mp->m_sb.sb_agcount); in xfs_ag_block_count()
24 if (agno < mp->m_sb.sb_agcount - 1) in xfs_ag_block_count()
60 if (agno >= mp->m_sb.sb_agcount) in xfs_verify_fsbno()
158 if (agno >= mp->m_sb.sb_agcount) in xfs_verify_ino()
Dxfs_sb.c344 sbp->sb_agcount <= 0 || in xfs_validate_sb_common()
366 agcount == 0 || agcount != sbp->sb_agcount || in xfs_validate_sb_common()
513 to->sb_agcount = be32_to_cpu(from->sb_agcount); in __xfs_sb_from_disk()
662 to->sb_agcount = cpu_to_be32(from->sb_agcount); in xfs_sb_to_disk()
860 mp->m_maxagi = mp->m_sb.sb_agcount; in xfs_sb_mount_common()
864 mp->m_agno_log = xfs_highbit32(sbp->sb_agcount - 1) + 1; in xfs_sb_mount_common()
1075 geo->agcount = sbp->sb_agcount; in xfs_fs_geometry()
Dxfs_ag.h135 for_each_perag_range((mp), (next_agno), (mp)->m_sb.sb_agcount, (pag))
Dxfs_ag.c190 for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { in xfs_free_perag()
784 ASSERT(agno == mp->m_sb.sb_agcount - 1); in xfs_ag_shrink_space()
904 ASSERT(id->agno == mp->m_sb.sb_agcount - 1 || in xfs_ag_extend_space()
953 if (agno >= mp->m_sb.sb_agcount) in xfs_ag_get_geometry()
Dxfs_fs.h277 #define XFS_MAX_DBLOCKS(s) ((xfs_rfsblock_t)(s)->sb_agcount * (s)->sb_agblocks)
278 #define XFS_MIN_DBLOCKS(s) ((xfs_rfsblock_t)((s)->sb_agcount - 1) * \
Dxfs_alloc.c103 return mp->m_sb.sb_agcount * (XFS_ALLOC_AGFL_RESERVE + 4); in xfs_alloc_set_aside()
3127 ASSERT(XFS_FSB_TO_AGNO(mp, args->fsbno) < mp->m_sb.sb_agcount); in xfs_alloc_vextent()
3132 if (XFS_FSB_TO_AGNO(mp, args->fsbno) >= mp->m_sb.sb_agcount || in xfs_alloc_vextent()
3172 mp->m_sb.sb_agcount), 0); in xfs_alloc_vextent()
3232 if (++(args->agno) == mp->m_sb.sb_agcount) { in xfs_alloc_vextent()
3261 (mp->m_sb.sb_agcount * rotorstep); in xfs_alloc_vextent()
3264 (mp->m_sb.sb_agcount * rotorstep); in xfs_alloc_vextent()
3311 if (args.agno >= args.mp->m_sb.sb_agcount) in xfs_free_extent_fix_freelist()
Dxfs_refcount_btree.c323 ASSERT(pag->pag_agno < mp->m_sb.sb_agcount); in xfs_refcountbt_init_common()
Dxfs_format.h109 xfs_agnumber_t sb_agcount; /* number of allocation groups */ member
200 __be32 sb_agcount; /* number of allocation groups */ member
Dxfs_bmap.c356 ASSERT(XFS_FSB_TO_AGNO(mp, bno) < mp->m_sb.sb_agcount); in xfs_bmap_check_leaf_extents()
552 ASSERT(agno < mp->m_sb.sb_agcount); in __xfs_bmap_add_free()
3090 XFS_FSB_TO_AGNO(mp, x) < mp->m_sb.sb_agcount && \ in xfs_bmap_adjacent()
3314 if (++ag == mp->m_sb.sb_agcount) in xfs_bmap_btalloc_nullfb()
Dxfs_ialloc.c2303 mp->m_sb.sb_agcount); in xfs_imap()
/Linux-v5.15/fs/xfs/
Dxfs_filestream.c176 if (++ag >= mp->m_sb.sb_agcount) in xfs_filestream_pick_ag()
300 startag = (mp->m_agfrotor / rotorstep) % mp->m_sb.sb_agcount; in xfs_filestream_lookup_ag()
302 (mp->m_sb.sb_agcount * rotorstep); in xfs_filestream_lookup_ag()
342 startag = (item->ag + 1) % mp->m_sb.sb_agcount; in xfs_filestream_new_ag()
Dxfs_iwalk.c575 ASSERT(agno < mp->m_sb.sb_agcount); in xfs_iwalk()
653 ASSERT(agno < mp->m_sb.sb_agcount); in xfs_iwalk_threaded()
760 ASSERT(agno < mp->m_sb.sb_agcount); in xfs_inobt_walk()
Dxfs_icreate_item.c172 if (agno >= mp->m_sb.sb_agcount) { in xlog_recover_icreate_commit_pass2()
Dxfs_mount.c512 return xfs_initialize_perag_data(mp, mp->m_sb.sb_agcount); in xfs_check_summary_counts()
743 error = xfs_initialize_perag(mp, sbp->sb_agcount, &mp->m_maxagi); in xfs_mountfs()
Dxfs_trans.c511 be32_add_cpu(&sbp->sb_agcount, tp->t_agcount_delta); in xfs_trans_apply_sb_deltas()
627 mp->m_sb.sb_agcount += tp->t_agcount_delta; in xfs_trans_unreserve_and_mod_sb()
Dxfs_itable.c244 return agno >= mp->m_sb.sb_agcount || in xfs_bulkstat_already_done()
Dxfs_fsops.c129 oagcount = mp->m_sb.sb_agcount; in xfs_growfs_data_private()
Dxfs_super.c1847 mp->m_maxagi = xfs_set_inode_alloc(mp, mp->m_sb.sb_agcount); in xfs_fs_reconfigure()
1853 mp->m_maxagi = xfs_set_inode_alloc(mp, mp->m_sb.sb_agcount); in xfs_fs_reconfigure()
Dxfs_ioctl.c876 if (hdr->agno >= mp->m_sb.sb_agcount) in xfs_bulk_ireq_setup()
893 if (XFS_INO_TO_AGNO(mp, breq->startino) >= mp->m_sb.sb_agcount) in xfs_bulk_ireq_setup()
Dxfs_icache.c736 if (!ino || XFS_INO_TO_AGNO(mp, ino) >= mp->m_sb.sb_agcount) in xfs_iget()
Dxfs_log_recover.c3353 error = xfs_initialize_perag(mp, sbp->sb_agcount, &mp->m_maxagi); in xlog_do_recover()
/Linux-v5.15/fs/xfs/scrub/
Dscrub.c399 sm->sm_agno >= mp->m_sb.sb_agcount) in xchk_validate_inputs()
Dagheader.c148 if (sb->sb_agcount != cpu_to_be32(mp->m_sb.sb_agcount)) in xchk_superblock()