Home
last modified time | relevance | path

Searched refs:sb_agblocks (Results 1 – 24 of 24) sorted by relevance

/kernel/linux/linux-5.10/fs/xfs/
Dxfs_fsops.c54 nb_mod = do_div(new, mp->m_sb.sb_agblocks); in xfs_growfs_data_private()
58 nb = (xfs_rfsblock_t)nagcount * mp->m_sb.sb_agblocks; in xfs_growfs_data_private()
96 (id.agno * (xfs_rfsblock_t)mp->m_sb.sb_agblocks); in xfs_growfs_data_private()
98 id.agsize = mp->m_sb.sb_agblocks; in xfs_growfs_data_private()
Dxfs_icreate_item.c177 if (!agbno || agbno == NULLAGBLOCK || agbno >= mp->m_sb.sb_agblocks) { in xlog_recover_icreate_commit_pass2()
192 if (!length || length >= mp->m_sb.sb_agblocks) { in xlog_recover_icreate_commit_pass2()
Dxfs_mount.h287 do_div(ld, mp->m_sb.sb_agblocks); in xfs_daddr_to_agno()
295 return (xfs_agblock_t) do_div(ld, mp->m_sb.sb_agblocks); in xfs_daddr_to_agbno()
Dxfs_filestream.c115 minfree = mp->m_sb.sb_agblocks / 50; in xfs_filestream_pick_ag()
Dxfs_mount.c427 if (mp->m_dalign && (mp->m_sb.sb_agblocks % mp->m_dalign)) { in xfs_validate_new_dalign()
430 mp->m_sb.sb_agblocks); in xfs_validate_new_dalign()
Dxfs_super.c264 icount += sbp->sb_agblocks - 1; in xfs_set_inode_alloc()
265 do_div(icount, sbp->sb_agblocks); in xfs_set_inode_alloc()
272 agino = XFS_AGB_TO_AGINO(mp, sbp->sb_agblocks - 1); in xfs_set_inode_alloc()
Dxfs_bmap_item.c473 bmap->me_len >= mp->m_sb.sb_agblocks || in xfs_bui_item_recover()
Dxfs_refcount_item.c469 refc->pe_len >= mp->m_sb.sb_agblocks || in xfs_cui_item_recover()
Dxfs_rmap_item.c513 rmap->me_len >= mp->m_sb.sb_agblocks || in xfs_rui_item_recover()
Dxfs_extfree_item.c611 extp->ext_len >= mp->m_sb.sb_agblocks) in xfs_efi_item_recover()
Dxfs_ioctl.c1361 if (extsize_fsb > mp->m_sb.sb_agblocks / 2) in xfs_ioctl_setattr_check_extsize()
1409 if (cowextsize_fsb > mp->m_sb.sb_agblocks / 2) in xfs_ioctl_setattr_check_cowextsize()
/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_sb.c285 if (sbp->sb_agblocks) { in xfs_validate_sb_common()
286 agcount = div_u64_rem(sbp->sb_dblocks, sbp->sb_agblocks, &rem); in xfs_validate_sb_common()
315 XFS_FSB_TO_B(mp, sbp->sb_agblocks) < XFS_MIN_AG_BYTES || in xfs_validate_sb_common()
316 XFS_FSB_TO_B(mp, sbp->sb_agblocks) > XFS_MAX_AG_BYTES || in xfs_validate_sb_common()
317 sbp->sb_agblklog != xfs_highbit32(sbp->sb_agblocks - 1) + 1 || in xfs_validate_sb_common()
499 to->sb_agblocks = be32_to_cpu(from->sb_agblocks); in __xfs_sb_from_disk()
642 to->sb_agblocks = cpu_to_be32(from->sb_agblocks); in xfs_sb_to_disk()
1123 geo->agblocks = sbp->sb_agblocks; in xfs_fs_geometry()
Dxfs_types.c24 return mp->m_sb.sb_agblocks; in xfs_ag_block_count()
25 return mp->m_sb.sb_dblocks - (agno * mp->m_sb.sb_agblocks); in xfs_ag_block_count()
Dxfs_fs.h276 #define XFS_MAX_DBLOCKS(s) ((xfs_rfsblock_t)(s)->sb_agcount * (s)->sb_agblocks)
278 (s)->sb_agblocks + XFS_MIN_AG_BLOCKS)
Dxfs_inode_buf.c652 if (!rt_flag && extsize > mp->m_sb.sb_agblocks / 2) in xfs_inode_validate_extsize()
702 if (cowextsize > mp->m_sb.sb_agblocks / 2) in xfs_inode_validate_cowextsize()
Dxfs_ialloc.c785 args.max_agbno = round_down(args.mp->m_sb.sb_agblocks, in xfs_ialloc_ag_alloc()
2209 if (agbno >= mp->m_sb.sb_agblocks) { in xfs_difree()
2211 __func__, agbno, mp->m_sb.sb_agblocks); in xfs_difree()
2335 if (agno >= mp->m_sb.sb_agcount || agbno >= mp->m_sb.sb_agblocks || in xfs_imap()
2349 if (agbno >= mp->m_sb.sb_agblocks) { in xfs_imap()
2353 (unsigned long)mp->m_sb.sb_agblocks); in xfs_imap()
Dxfs_format.h108 xfs_agblock_t sb_agblocks; /* size of an allocation group */ member
199 __be32 sb_agblocks; /* size of an allocation group */ member
845 (xfs_fsblock_t)(agno) * (mp)->m_sb.sb_agblocks + (agbno)))
Dxfs_alloc.c136 return mp->m_sb.sb_agblocks - blocks; in xfs_alloc_ag_max_usable()
619 be32_to_cpu(agfl_bno[i]) >= mp->m_sb.sb_agblocks) in xfs_agfl_verify()
1568 args->max_agbno = args->mp->m_sb.sb_agblocks - 1; in xfs_alloc_ag_vextent_near()
2201 (mp->m_sb.sb_agblocks + 1) / 2); in xfs_alloc_compute_maxlevels()
3061 agsize = mp->m_sb.sb_agblocks; in xfs_alloc_vextent()
3299 if (XFS_IS_CORRUPT(mp, agbno >= mp->m_sb.sb_agblocks)) { in __xfs_free_extent()
Dxfs_refcount.c939 ext.rc_startblock = cur->bc_mp->m_sb.sb_agblocks; in xfs_refcount_adjust_extents()
1469 ext.rc_startblock = cur->bc_mp->m_sb.sb_agblocks + in xfs_refcount_adjust_cow_extents()
1697 if (mp->m_sb.sb_agblocks >= XFS_REFC_COW_START) in xfs_refcount_recover_cow_leftovers()
Dxfs_refcount_btree.c419 mp->m_refc_mnr, mp->m_sb.sb_agblocks); in xfs_refcountbt_compute_maxlevels()
Dxfs_rmap_btree.c567 mp->m_rmap_mnr, mp->m_sb.sb_agblocks); in xfs_rmapbt_compute_maxlevels()
Dxfs_ag.c513 be32_to_cpu(agi->agi_length) == mp->m_sb.sb_agblocks); in xfs_ag_extend_space()
Dxfs_bmap.c354 ASSERT(XFS_FSB_TO_AGBNO(mp, bno) < mp->m_sb.sb_agblocks); in xfs_bmap_check_leaf_extents()
550 ASSERT(agbno < mp->m_sb.sb_agblocks); in __xfs_bmap_add_free()
551 ASSERT(len < mp->m_sb.sb_agblocks); in __xfs_bmap_add_free()
552 ASSERT(agbno + len <= mp->m_sb.sb_agblocks); in __xfs_bmap_add_free()
3142 XFS_FSB_TO_AGBNO(mp, x) < mp->m_sb.sb_agblocks) in xfs_bmap_adjacent()
/kernel/linux/linux-5.10/fs/xfs/scrub/
Dagheader.c133 if (sb->sb_agblocks != cpu_to_be32(mp->m_sb.sb_agblocks)) in xchk_superblock()