Searched refs:sb_agblocks (Results 1 – 20 of 20) sorted by relevance
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_sb.c | 607 if (sbp->sb_agblocks) { in xfs_validate_sb_common() 608 agcount = div_u64_rem(sbp->sb_dblocks, sbp->sb_agblocks, &rem); in xfs_validate_sb_common() 636 XFS_FSB_TO_B(mp, sbp->sb_agblocks) < XFS_MIN_AG_BYTES || in xfs_validate_sb_common() 637 XFS_FSB_TO_B(mp, sbp->sb_agblocks) > XFS_MAX_AG_BYTES || in xfs_validate_sb_common() 638 sbp->sb_agblklog != xfs_highbit32(sbp->sb_agblocks - 1) + 1 || in xfs_validate_sb_common() 824 to->sb_agblocks = be32_to_cpu(from->sb_agblocks); in __xfs_sb_from_disk() 1004 to->sb_agblocks = cpu_to_be32(from->sb_agblocks); in xfs_sb_to_disk() 1273 ags->blocks = mp->m_sb.sb_agblocks; in xfs_sb_mount_common() 1518 geo->agblocks = sbp->sb_agblocks; in xfs_fs_geometry()
|
| H A D | xfs_ag.c | 147 return mp->m_sb.sb_agblocks; in __xfs_ag_block_count() 148 return dblocks - (agno * mp->m_sb.sb_agblocks); in __xfs_ag_block_count() 887 nb_mod = do_div(nb_div, mp->m_sb.sb_agblocks); in xfs_growfs_compute_deltas() 891 nb = nb_div * mp->m_sb.sb_agblocks; in xfs_growfs_compute_deltas() 895 nb = nb_div * mp->m_sb.sb_agblocks; in xfs_growfs_compute_deltas()
|
| H A D | xfs_rmap_btree.c | 775 mp->m_sb.sb_agblocks); in xfs_rmapbt_compute_maxlevels() 782 mp->m_rmap_mnr, mp->m_sb.sb_agblocks); in xfs_rmapbt_compute_maxlevels()
|
| H A D | xfs_fs.h | 280 #define XFS_MAX_DBLOCKS(s) ((xfs_rfsblock_t)(s)->sb_agcount * (s)->sb_agblocks) 282 (s)->sb_agblocks + XFS_MIN_AG_BLOCKS)
|
| H A D | xfs_alloc.c | 150 return mp->m_sb.sb_agblocks - blocks; in xfs_alloc_ag_max_usable() 806 be32_to_cpu(agfl_bno[i]) >= mp->m_sb.sb_agblocks) in xfs_agfl_verify() 1686 args->max_agbno = args->mp->m_sb.sb_agblocks - 1; in xfs_alloc_ag_vextent_near() 2395 (mp->m_sb.sb_agblocks + 1) / 2); in xfs_alloc_compute_maxlevels() 3209 if (length != mp->m_sb.sb_agblocks) { in xfs_validate_ag_length() 3219 if (length > mp->m_sb.sb_agblocks) in xfs_validate_ag_length() 3514 agsize = mp->m_sb.sb_agblocks; in xfs_alloc_vextent_check_args() 4034 if (XFS_IS_CORRUPT(mp, agbno >= mp->m_sb.sb_agblocks)) { in __xfs_free_extent()
|
| H A D | xfs_format.h | 107 xfs_agblock_t sb_agblocks; /* size of an allocation group */ member 205 __be32 sb_agblocks; /* size of an allocation group */ member 710 (xfs_fsblock_t)(agno) * (mp)->m_sb.sb_agblocks + (agbno)))
|
| H A D | xfs_inode_buf.c | 898 if (!rt_flag && extsize > mp->m_sb.sb_agblocks / 2) in xfs_inode_validate_extsize() 970 if (!rt_flag && cowextsize > mp->m_sb.sb_agblocks / 2) in xfs_inode_validate_cowextsize()
|
| H A D | xfs_ondisk.h | 239 XFS_CHECK_SB_OFFSET(sb_agblocks, 84); in xfs_check_ondisk_structs()
|
| H A D | xfs_refcount_btree.c | 455 mp->m_refc_mnr, mp->m_sb.sb_agblocks); in xfs_refcountbt_compute_maxlevels()
|
| H A D | xfs_bmap.c | 380 ASSERT(XFS_FSB_TO_AGBNO(mp, bno) < mp->m_sb.sb_agblocks); in xfs_bmap_check_leaf_extents() 3011 XFS_FSB_TO_AGBNO(mp, x) < mp->m_sb.sb_agblocks; in xfs_bmap_adjacent_valid()
|
| /linux/fs/xfs/ |
| H A D | xfs_icreate_item.c | 176 if (!agbno || agbno == NULLAGBLOCK || agbno >= mp->m_sb.sb_agblocks) { in xlog_recover_icreate_commit_pass2() 191 if (!length || length >= mp->m_sb.sb_agblocks) { in xlog_recover_icreate_commit_pass2()
|
| H A D | xfs_fsops.c | 67 (xfs_rfsblock_t)mp->m_sb.sb_agblocks); in xfs_resizefs_init_new_ags() 69 id->agsize = mp->m_sb.sb_agblocks; in xfs_resizefs_init_new_ags()
|
| H A D | xfs_mount.h | 685 do_div(ld, mp->m_sb.sb_agblocks); in xfs_daddr_to_agno() 693 return (xfs_agblock_t) do_div(ld, mp->m_sb.sb_agblocks); in xfs_daddr_to_agbno()
|
| H A D | xfs_filestream.c | 72 minfree = mp->m_sb.sb_agblocks / 50; in xfs_filestream_pick_ag()
|
| H A D | xfs_mount.c | 326 if (mp->m_dalign && (mp->m_sb.sb_agblocks % mp->m_dalign)) { in xfs_validate_new_dalign() 329 mp->m_sb.sb_agblocks); in xfs_validate_new_dalign()
|
| H A D | xfs_super.c | 327 icount += sbp->sb_agblocks - 1; in xfs_set_inode_alloc() 328 do_div(icount, sbp->sb_agblocks); in xfs_set_inode_alloc() 335 agino = XFS_AGB_TO_AGINO(mp, sbp->sb_agblocks - 1); in xfs_set_inode_alloc()
|
| /linux/fs/xfs/scrub/ |
| H A D | refcount_repair.c | 713 error = xfarray_create("reference count records", mp->m_sb.sb_agblocks, in xrep_refcountbt()
|
| H A D | agheader.c | 193 if (sb->sb_agblocks != cpu_to_be32(mp->m_sb.sb_agblocks)) in xchk_superblock()
|
| H A D | refcount.c | 541 xchk_refcountbt_xref_gaps(sc, &rrc, sc->mp->m_sb.sb_agblocks); in xchk_refcountbt()
|
| H A D | alloc_repair.c | 878 error = xfarray_create("free space records", mp->m_sb.sb_agblocks / 2, in xrep_allocbt()
|