Searched refs:sb_agblocks (Results 1 – 21 of 21) sorted by relevance
/linux-6.12.1/fs/xfs/ |
D | xfs_fsops.c | 60 (xfs_rfsblock_t)mp->m_sb.sb_agblocks); in xfs_resizefs_init_new_ags() 62 id->agsize = mp->m_sb.sb_agblocks; in xfs_resizefs_init_new_ags() 117 nb_mod = do_div(nb_div, mp->m_sb.sb_agblocks); in xfs_growfs_data_private() 121 nb = nb_div * mp->m_sb.sb_agblocks; in xfs_growfs_data_private() 125 nb = nb_div * mp->m_sb.sb_agblocks; in xfs_growfs_data_private()
|
D | xfs_icreate_item.c | 178 if (!agbno || agbno == NULLAGBLOCK || agbno >= mp->m_sb.sb_agblocks) { in xlog_recover_icreate_commit_pass2() 193 if (!length || length >= mp->m_sb.sb_agblocks) { in xlog_recover_icreate_commit_pass2()
|
D | xfs_mount.h | 534 do_div(ld, mp->m_sb.sb_agblocks); in xfs_daddr_to_agno() 542 return (xfs_agblock_t) do_div(ld, mp->m_sb.sb_agblocks); in xfs_daddr_to_agbno()
|
D | xfs_filestream.c | 72 minfree = mp->m_sb.sb_agblocks / 50; in xfs_filestream_pick_ag()
|
D | xfs_mount.c | 322 if (mp->m_dalign && (mp->m_sb.sb_agblocks % mp->m_dalign)) { in xfs_validate_new_dalign() 325 mp->m_sb.sb_agblocks); in xfs_validate_new_dalign()
|
D | xfs_super.c | 297 icount += sbp->sb_agblocks - 1; in xfs_set_inode_alloc() 298 do_div(icount, sbp->sb_agblocks); in xfs_set_inode_alloc() 305 agino = XFS_AGB_TO_AGINO(mp, sbp->sb_agblocks - 1); in xfs_set_inode_alloc()
|
/linux-6.12.1/fs/xfs/libxfs/ |
D | xfs_sb.c | 426 if (sbp->sb_agblocks) { in xfs_validate_sb_common() 427 agcount = div_u64_rem(sbp->sb_dblocks, sbp->sb_agblocks, &rem); in xfs_validate_sb_common() 455 XFS_FSB_TO_B(mp, sbp->sb_agblocks) < XFS_MIN_AG_BYTES || in xfs_validate_sb_common() 456 XFS_FSB_TO_B(mp, sbp->sb_agblocks) > XFS_MAX_AG_BYTES || in xfs_validate_sb_common() 457 sbp->sb_agblklog != xfs_highbit32(sbp->sb_agblocks - 1) + 1 || in xfs_validate_sb_common() 635 to->sb_agblocks = be32_to_cpu(from->sb_agblocks); in __xfs_sb_from_disk() 784 to->sb_agblocks = cpu_to_be32(from->sb_agblocks); in xfs_sb_to_disk() 1216 geo->agblocks = sbp->sb_agblocks; in xfs_fs_geometry()
|
D | xfs_inode_buf.c | 771 if (!rt_flag && extsize > mp->m_sb.sb_agblocks / 2) in xfs_inode_validate_extsize() 828 if (cowextsize > mp->m_sb.sb_agblocks / 2) in xfs_inode_validate_cowextsize()
|
D | xfs_fs.h | 272 #define XFS_MAX_DBLOCKS(s) ((xfs_rfsblock_t)(s)->sb_agcount * (s)->sb_agblocks) 274 (s)->sb_agblocks + XFS_MIN_AG_BLOCKS)
|
D | xfs_format.h | 107 xfs_agblock_t sb_agblocks; /* size of an allocation group */ member 196 __be32 sb_agblocks; /* size of an allocation group */ member 681 (xfs_fsblock_t)(agno) * (mp)->m_sb.sb_agblocks + (agbno)))
|
D | xfs_rmap_btree.c | 796 mp->m_sb.sb_agblocks); in xfs_rmapbt_compute_maxlevels() 803 mp->m_rmap_mnr, mp->m_sb.sb_agblocks); in xfs_rmapbt_compute_maxlevels()
|
D | xfs_ialloc.c | 858 args.max_agbno = round_down(args.mp->m_sb.sb_agblocks, in xfs_ialloc_ag_alloc() 2335 if (agbno >= mp->m_sb.sb_agblocks) { in xfs_difree() 2337 __func__, agbno, mp->m_sb.sb_agblocks); in xfs_difree() 2460 if (agbno >= mp->m_sb.sb_agblocks || in xfs_imap() 2470 if (agbno >= mp->m_sb.sb_agblocks) { in xfs_imap() 2474 (unsigned long)mp->m_sb.sb_agblocks); in xfs_imap()
|
D | xfs_alloc.c | 152 return mp->m_sb.sb_agblocks - blocks; in xfs_alloc_ag_max_usable() 807 be32_to_cpu(agfl_bno[i]) >= mp->m_sb.sb_agblocks) in xfs_agfl_verify() 1687 args->max_agbno = args->mp->m_sb.sb_agblocks - 1; in xfs_alloc_ag_vextent_near() 2394 (mp->m_sb.sb_agblocks + 1) / 2); in xfs_alloc_compute_maxlevels() 3200 if (length != mp->m_sb.sb_agblocks) { in xfs_validate_ag_length() 3210 if (length > mp->m_sb.sb_agblocks) in xfs_validate_ag_length() 3480 agsize = mp->m_sb.sb_agblocks; in xfs_alloc_vextent_check_args() 4002 if (XFS_IS_CORRUPT(mp, agbno >= mp->m_sb.sb_agblocks)) { in __xfs_free_extent()
|
D | xfs_refcount.c | 1120 ext.rc_startblock = cur->bc_mp->m_sb.sb_agblocks; in xfs_refcount_adjust_extents() 1670 ext.rc_startblock = cur->bc_mp->m_sb.sb_agblocks; in xfs_refcount_adjust_cow_extents() 1918 if (mp->m_sb.sb_agblocks > XFS_MAX_CRC_AG_BLOCKS) in xfs_refcount_recover_cow_leftovers()
|
D | xfs_ag.c | 228 return mp->m_sb.sb_agblocks; in __xfs_ag_block_count() 229 return dblocks - (agno * mp->m_sb.sb_agblocks); in __xfs_ag_block_count()
|
D | xfs_refcount_btree.c | 456 mp->m_refc_mnr, mp->m_sb.sb_agblocks); in xfs_refcountbt_compute_maxlevels()
|
D | xfs_bmap.c | 381 ASSERT(XFS_FSB_TO_AGBNO(mp, bno) < mp->m_sb.sb_agblocks); in xfs_bmap_check_leaf_extents() 3129 XFS_FSB_TO_AGBNO(mp, x) < mp->m_sb.sb_agblocks; in xfs_bmap_adjacent_valid()
|
/linux-6.12.1/fs/xfs/scrub/ |
D | agheader.c | 156 if (sb->sb_agblocks != cpu_to_be32(mp->m_sb.sb_agblocks)) in xchk_superblock()
|
D | refcount.c | 541 xchk_refcountbt_xref_gaps(sc, &rrc, sc->mp->m_sb.sb_agblocks); in xchk_refcountbt()
|
D | refcount_repair.c | 722 error = xfarray_create(descr, mp->m_sb.sb_agblocks, in xrep_refcountbt()
|
D | alloc_repair.c | 879 error = xfarray_create(descr, mp->m_sb.sb_agblocks / 2, in xrep_allocbt()
|