Home
last modified time | relevance | path

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

/fs/xfs/
Dxfs_fsops.c63 geo->agblocks = mp->m_sb.sb_agblocks; in xfs_fs_geometry()
191 nb_mod = do_div(new, mp->m_sb.sb_agblocks); in xfs_growfs_data_private()
195 nb = (xfs_rfsblock_t)nagcount * mp->m_sb.sb_agblocks; in xfs_growfs_data_private()
242 (agno * (xfs_rfsblock_t)mp->m_sb.sb_agblocks); in xfs_growfs_data_private()
244 agsize = mp->m_sb.sb_agblocks; in xfs_growfs_data_private()
571 be32_to_cpu(agi->agi_length) == mp->m_sb.sb_agblocks); in xfs_growfs_data_private()
Dxfs_mount.h316 do_div(ld, mp->m_sb.sb_agblocks); in xfs_daddr_to_agno()
324 return (xfs_agblock_t) do_div(ld, mp->m_sb.sb_agblocks); in xfs_daddr_to_agbno()
Dxfs_filestream.c159 minfree = mp->m_sb.sb_agblocks / 50; in xfs_filestream_pick_ag()
Dxfs_bmap_item.c441 bmap->me_len >= mp->m_sb.sb_agblocks || in xfs_bui_recover()
Dxfs_rmap_item.c460 rmap->me_len >= mp->m_sb.sb_agblocks || in xfs_rui_recover()
Dxfs_refcount_item.c439 refc->pe_len >= mp->m_sb.sb_agblocks || in xfs_cui_recover()
Dxfs_mount.c375 if (mp->m_dalign && (sbp->sb_agblocks % mp->m_dalign)) { in xfs_update_alignment()
378 sbp->sb_agblocks); in xfs_update_alignment()
Dxfs_extfree_item.c524 extp->ext_len >= mp->m_sb.sb_agblocks) { in xfs_efi_recover()
Dxfs_super.c623 icount += sbp->sb_agblocks - 1; in xfs_set_inode_alloc()
624 do_div(icount, sbp->sb_agblocks); in xfs_set_inode_alloc()
631 agino = XFS_OFFBNO_TO_AGINO(mp, sbp->sb_agblocks - 1, 0); in xfs_set_inode_alloc()
Dxfs_ioctl.c1233 if (extsize_fsb > mp->m_sb.sb_agblocks / 2) in xfs_ioctl_setattr_check_extsize()
1284 if (cowextsize_fsb > mp->m_sb.sb_agblocks / 2) in xfs_ioctl_setattr_check_cowextsize()
Dxfs_bmap_util.c378 ASSERT(XFS_FSB_TO_AGBNO(mp, bno) < mp->m_sb.sb_agblocks); in xfs_bmap_count_blocks()
Dxfs_log_recover.c3865 if (!agbno || agbno == NULLAGBLOCK || agbno >= mp->m_sb.sb_agblocks) { in xlog_recover_do_icreate_pass2()
3880 if (!length || length >= mp->m_sb.sb_agblocks) { in xlog_recover_do_icreate_pass2()
/fs/xfs/libxfs/
Dxfs_sb.c380 to->sb_agblocks = be32_to_cpu(from->sb_agblocks); in __xfs_sb_from_disk()
523 to->sb_agblocks = cpu_to_be32(from->sb_agblocks); in xfs_sb_to_disk()
Dxfs_fs.h229 #define XFS_MAX_DBLOCKS(s) ((xfs_rfsblock_t)(s)->sb_agcount * (s)->sb_agblocks)
231 (s)->sb_agblocks + XFS_MIN_AG_BLOCKS)
Dxfs_ialloc.c764 args.max_agbno = round_down(args.mp->m_sb.sb_agblocks, in xfs_ialloc_ag_alloc()
2158 if (agbno >= mp->m_sb.sb_agblocks) { in xfs_difree()
2160 __func__, agbno, mp->m_sb.sb_agblocks); in xfs_difree()
2285 if (agno >= mp->m_sb.sb_agcount || agbno >= mp->m_sb.sb_agblocks || in xfs_imap()
2299 if (agbno >= mp->m_sb.sb_agblocks) { in xfs_imap()
2303 (unsigned long)mp->m_sb.sb_agblocks); in xfs_imap()
Dxfs_alloc.c131 return mp->m_sb.sb_agblocks - blocks; in xfs_alloc_ag_max_usable()
541 be32_to_cpu(agfl->agfl_bno[i]) >= mp->m_sb.sb_agblocks) in xfs_agfl_verify()
970 args->max_agbno = args->mp->m_sb.sb_agblocks - 1; in xfs_alloc_ag_vextent_near()
1923 (mp->m_sb.sb_agblocks + 1) / 2); in xfs_alloc_compute_maxlevels()
2614 agsize = mp->m_sb.sb_agblocks; in xfs_alloc_vextent()
2868 XFS_WANT_CORRUPTED_GOTO(mp, agbno < mp->m_sb.sb_agblocks, err); in xfs_free_extent()
Dxfs_format.h117 xfs_agblock_t sb_agblocks; /* size of an allocation group */ member
208 __be32 sb_agblocks; /* size of an allocation group */ member
831 (xfs_fsblock_t)(agno) * (mp)->m_sb.sb_agblocks + (agbno)))
Dxfs_refcount.c853 ext.rc_startblock = cur->bc_mp->m_sb.sb_agblocks; in xfs_refcount_adjust_extents()
1379 ext.rc_startblock = cur->bc_mp->m_sb.sb_agblocks + in xfs_refcount_adjust_cow_extents()
1621 if (mp->m_sb.sb_agblocks >= XFS_REFC_COW_START) in xfs_refcount_recover_cow_leftovers()
Dxfs_refcount_btree.c394 mp->m_refc_mnr, mp->m_sb.sb_agblocks); in xfs_refcountbt_compute_maxlevels()
Dxfs_btree.h496 XFS_FSB_TO_AGBNO(mp, fsb) < mp->m_sb.sb_agblocks)
Dxfs_ialloc_btree.c514 (uint64_t)mp->m_sb.sb_agblocks * mp->m_sb.sb_inopblock / in xfs_inobt_max_size()
Dxfs_rmap_btree.c535 mp->m_rmap_mnr, mp->m_sb.sb_agblocks); in xfs_rmapbt_compute_maxlevels()
Dxfs_dir2.c217 agblkno < mp->m_sb.sb_agblocks && in xfs_dir_ino_validate()
Dxfs_bmap.c396 ASSERT(XFS_FSB_TO_AGBNO(mp, bno) < mp->m_sb.sb_agblocks); in xfs_bmap_check_leaf_extents()
613 ASSERT(agbno < mp->m_sb.sb_agblocks); in xfs_bmap_add_free()
614 ASSERT(len < mp->m_sb.sb_agblocks); in xfs_bmap_add_free()
615 ASSERT(agbno + len <= mp->m_sb.sb_agblocks); in xfs_bmap_add_free()
3428 XFS_FSB_TO_AGBNO(mp, x) < mp->m_sb.sb_agblocks) in xfs_bmap_adjacent()
3983 args.agbno >= mp->m_sb.sb_agblocks) in xfs_bmap_remap_alloc()
Dxfs_btree.c192 xfs_agblock_t agblocks = cur->bc_mp->m_sb.sb_agblocks; in xfs_btree_check_sptr()
4535 (be32_to_cpu(block->bb_u.s.bb_leftsib) >= mp->m_sb.sb_agblocks && in xfs_btree_sblock_verify()
4539 (be32_to_cpu(block->bb_u.s.bb_rightsib) >= mp->m_sb.sb_agblocks && in xfs_btree_sblock_verify()