Home
last modified time | relevance | path

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

/openbmc/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.c393 sbp->sb_agcount <= 0 || in xfs_validate_sb_common()
414 agcount == 0 || agcount != sbp->sb_agcount || in xfs_validate_sb_common()
618 to->sb_agcount = be32_to_cpu(from->sb_agcount); in __xfs_sb_from_disk()
767 to->sb_agcount = cpu_to_be32(from->sb_agcount); in xfs_sb_to_disk()
966 mp->m_maxagi = mp->m_sb.sb_agcount; in xfs_sb_mount_common()
970 mp->m_agno_log = xfs_highbit32(sbp->sb_agcount - 1) + 1; in xfs_sb_mount_common()
1189 geo->agcount = sbp->sb_agcount; in xfs_fs_geometry()
H A Dxfs_ag.h249 for_each_perag_range((mp), (agno), (mp)->m_sb.sb_agcount - 1, (pag))
310 for_each_perag_wrap_at((mp), (start_agno), (mp)->m_sb.sb_agcount, \
H A Dxfs_ag.c257 for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { in xfs_free_perag()
296 return __xfs_ag_block_count(mp, agno, mp->m_sb.sb_agcount, in xfs_ag_block_count()
939 ASSERT(pag->pag_agno == mp->m_sb.sb_agcount - 1); in xfs_ag_shrink_space()
1067 ASSERT(pag->pag_agno == pag->pag_mount->m_sb.sb_agcount - 1); in xfs_ag_extend_space()
H A Dxfs_alloc.c117 return mp->m_sb.sb_agcount * (XFS_ALLOCBT_AGFL_RESERVE + 4); in xfs_alloc_set_aside()
2546 ASSERT(agno < mp->m_sb.sb_agcount); in __xfs_free_extent_later()
3010 if (bp->b_pag && seqno != mp->m_sb.sb_agcount - 1) in xfs_validate_ag_length()
3301 ASSERT(XFS_FSB_TO_AGNO(mp, target) < mp->m_sb.sb_agcount); in xfs_alloc_vextent_check_args()
3307 if (XFS_FSB_TO_AGNO(mp, target) >= mp->m_sb.sb_agcount || in xfs_alloc_vextent_check_args()
3525 mp->m_sb.sb_agcount, agno, args->pag) { in xfs_alloc_vextent_iterate_ags()
3611 mp->m_sb.sb_agcount), 0); in xfs_alloc_vextent_start_ag()
3622 (mp->m_sb.sb_agcount * rotorstep); in xfs_alloc_vextent_start_ag()
3625 (mp->m_sb.sb_agcount * rotorstep); in xfs_alloc_vextent_start_ag()
3764 if (args.agno >= args.mp->m_sb.sb_agcount) in xfs_free_extent_fix_freelist()
H A Dxfs_fs.h267 #define XFS_MAX_DBLOCKS(s) ((xfs_rfsblock_t)(s)->sb_agcount * (s)->sb_agblocks)
268 #define XFS_MIN_DBLOCKS(s) ((xfs_rfsblock_t)((s)->sb_agcount - 1) * \
H A Dxfs_format.h109 xfs_agnumber_t sb_agcount; /* number of allocation groups */ member
200 __be32 sb_agcount; /* number of allocation groups */ member
H A Dxfs_refcount_btree.c346 ASSERT(pag->pag_agno < mp->m_sb.sb_agcount); in xfs_refcountbt_init_common()
H A Dxfs_bmap.c354 ASSERT(XFS_FSB_TO_AGNO(mp, bno) < mp->m_sb.sb_agcount); in xfs_bmap_check_leaf_extents()
3064 XFS_FSB_TO_AGNO(mp, x) < mp->m_sb.sb_agcount && \ in xfs_bmap_adjacent()
/openbmc/linux/fs/xfs/
H A Dxfs_filestream.c282 agno = (item->pag->pag_agno + 1) % mp->m_sb.sb_agcount; in xfs_filestream_create_association()
287 agno = (mp->m_agfrotor / rotorstep) % mp->m_sb.sb_agcount; in xfs_filestream_create_association()
289 (mp->m_sb.sb_agcount * rotorstep); in xfs_filestream_create_association()
H A 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()
759 ASSERT(agno < mp->m_sb.sb_agcount); in xfs_inobt_walk()
H A Dxfs_icreate_item.c173 if (agno >= mp->m_sb.sb_agcount) { in xlog_recover_icreate_commit_pass2()
H A Dxfs_mount.c516 error = xfs_initialize_perag_data(mp, mp->m_sb.sb_agcount); in xfs_check_summary_counts()
800 error = xfs_initialize_perag(mp, sbp->sb_agcount, mp->m_sb.sb_dblocks, in xfs_mountfs()
H A Dxfs_itable.c266 return agno >= mp->m_sb.sb_agcount || in xfs_bulkstat_already_done()
H A Dxfs_trans.c529 be32_add_cpu(&sbp->sb_agcount, tp->t_agcount_delta); in xfs_trans_apply_sb_deltas()
655 mp->m_sb.sb_agcount += tp->t_agcount_delta; in xfs_trans_unreserve_and_mod_sb()
H A Dxfs_fsops.c141 oagcount = mp->m_sb.sb_agcount; in xfs_growfs_data_private()
H A Dxfs_super.c1938 mp->m_maxagi = xfs_set_inode_alloc(mp, mp->m_sb.sb_agcount); in xfs_fs_reconfigure()
1944 mp->m_maxagi = xfs_set_inode_alloc(mp, mp->m_sb.sb_agcount); in xfs_fs_reconfigure()
H A Dxfs_ioctl.c798 if (hdr->agno >= mp->m_sb.sb_agcount) in xfs_bulk_ireq_setup()
815 if (XFS_INO_TO_AGNO(mp, breq->startino) >= mp->m_sb.sb_agcount) in xfs_bulk_ireq_setup()
H A Dxfs_icache.c751 if (!ino || XFS_INO_TO_AGNO(mp, ino) >= mp->m_sb.sb_agcount) in xfs_iget()
H A Dxfs_log_recover.c3368 error = xfs_initialize_perag(mp, sbp->sb_agcount, sbp->sb_dblocks, in xlog_do_recover()
/openbmc/linux/fs/xfs/scrub/
H A Dscrub.c403 sm->sm_agno >= mp->m_sb.sb_agcount) in xchk_validate_inputs()
H A Dagheader.c158 if (sb->sb_agcount != cpu_to_be32(mp->m_sb.sb_agcount)) in xchk_superblock()