Home
last modified time | relevance | path

Searched refs:sb_rextsize (Results 1 – 12 of 12) sorted by relevance

/linux-6.12.1/fs/xfs/libxfs/
Dxfs_rtbitmap.h28 return rtx * mp->m_sb.sb_rextsize; in xfs_rtx_to_rtb()
39 return rtxlen * mp->m_sb.sb_rextsize; in xfs_rtxlen_to_extlen()
51 return len % mp->m_sb.sb_rextsize; in xfs_extlen_to_rtxmod()
62 return len / mp->m_sb.sb_rextsize; in xfs_extlen_to_rtxlen()
74 return div_u64(rtbno, mp->m_sb.sb_rextsize); in xfs_rtb_to_rtx()
86 return do_div(rtbno, mp->m_sb.sb_rextsize); in xfs_rtb_to_rtxoff()
104 if (do_div(rtbno, mp->m_sb.sb_rextsize)) in xfs_rtb_to_rtxup()
115 return roundup_64(rtbno, mp->m_sb.sb_rextsize); in xfs_rtb_roundup_rtx()
124 return rounddown_64(rtbno, mp->m_sb.sb_rextsize); in xfs_rtb_rounddown_rtx()
Dxfs_sb.c247 if (sbp->sb_rextsize * sbp->sb_blocksize > XFS_MAX_RTEXTSIZE || in xfs_validate_rt_geometry()
248 sbp->sb_rextsize * sbp->sb_blocksize < XFS_MIN_RTEXTSIZE) in xfs_validate_rt_geometry()
259 sbp->sb_rextents != div_u64(sbp->sb_rblocks, sbp->sb_rextsize) || in xfs_validate_rt_geometry()
460 (sbp->sb_rextsize * sbp->sb_blocksize > XFS_MAX_RTEXTSIZE) || in xfs_validate_sb_common()
461 (sbp->sb_rextsize * sbp->sb_blocksize < XFS_MIN_RTEXTSIZE) || in xfs_validate_sb_common()
634 to->sb_rextsize = be32_to_cpu(from->sb_rextsize); in __xfs_sb_from_disk()
783 to->sb_rextsize = cpu_to_be32(from->sb_rextsize); in xfs_sb_to_disk()
973 mp->m_rtxblklog = log2_if_power2(sbp->sb_rextsize); in xfs_mount_sb_set_rextsize()
974 mp->m_rtxblkmask = mask64_if_power2(sbp->sb_rextsize); in xfs_mount_sb_set_rextsize()
1215 geo->rtextsize = sbp->sb_rextsize; in xfs_fs_geometry()
Dxfs_exchmaps.c237 if (!isaligned_64(irec->br_startoff, mp->m_sb.sb_rextsize)) { in xfs_exchmaps_can_skip_mapping()
240 new_end = roundup_64(irec->br_startoff, mp->m_sb.sb_rextsize); in xfs_exchmaps_can_skip_mapping()
245 if (isaligned_64(irec->br_blockcount, mp->m_sb.sb_rextsize)) in xfs_exchmaps_can_skip_mapping()
257 if (irec->br_blockcount > mp->m_sb.sb_rextsize) { in xfs_exchmaps_can_skip_mapping()
261 mp->m_sb.sb_rextsize); in xfs_exchmaps_can_skip_mapping()
Dxfs_format.h106 xfs_agblock_t sb_rextsize; /* realtime extent size, blocks */ member
195 __be32 sb_rextsize; /* realtime extent size, blocks */ member
Dxfs_inode_buf.c745 blocksize_bytes = XFS_FSB_TO_B(mp, mp->m_sb.sb_rextsize); in xfs_inode_validate_extsize()
Dxfs_bmap.c5535 xfs_extlen_t off = mp->m_sb.sb_rextsize - mod; in __xfs_bunmapi()
6436 ip->i_mount->m_sb.sb_rextsize > 1) in xfs_get_extsz_hint()
6437 return ip->i_mount->m_sb.sb_rextsize; in xfs_get_extsz_hint()
/linux-6.12.1/fs/xfs/
Dxfs_rtalloc.c730 nmp->m_sb.sb_rextsize = rextsize; in xfs_growfs_rt_bmblock()
786 if (nmp->m_sb.sb_rextsize != mp->m_sb.sb_rextsize) in xfs_growfs_rt_bmblock()
788 nmp->m_sb.sb_rextsize - mp->m_sb.sb_rextsize); in xfs_growfs_rt_bmblock()
881 xfs_agblock_t old_rextsize = mp->m_sb.sb_rextsize; in xfs_growfs_rt()
904 if (mp->m_sb.sb_rblocks > 0 && in->extsize != mp->m_sb.sb_rextsize) in xfs_growfs_rt()
1349 xfs_extlen_t minlen = mp->m_sb.sb_rextsize; in xfs_rtallocate_align()
1355 align = mp->m_sb.sb_rextsize; in xfs_rtallocate_align()
1360 if (align == mp->m_sb.sb_rextsize) in xfs_rtallocate_align()
Dxfs_trans.c538 be32_add_cpu(&sbp->sb_rextsize, tp->t_rextsize_delta); in xfs_trans_apply_sb_deltas()
662 mp->m_sb.sb_rextsize += tp->t_rextsize_delta; in xfs_trans_unreserve_and_mod_sb()
664 mp->m_rtxblklog = log2_if_power2(mp->m_sb.sb_rextsize); in xfs_trans_unreserve_and_mod_sb()
665 mp->m_rtxblkmask = mask64_if_power2(mp->m_sb.sb_rextsize); in xfs_trans_unreserve_and_mod_sb()
Dxfs_inode.h325 return XFS_IS_REALTIME_INODE(ip) && ip->i_mount->m_sb.sb_rextsize > 1; in xfs_inode_has_bigrtalloc()
Dxfs_ioctl.c501 if (mp->m_sb.sb_rblocks == 0 || mp->m_sb.sb_rextsize == 0 || in xfs_ioctl_setattr_xflags()
624 rtextsize_bytes = XFS_FSB_TO_B(mp, mp->m_sb.sb_rextsize); in xfs_ioctl_setattr_check_extsize()
Dxfs_inode.c3036 blocks = ip->i_mount->m_sb.sb_rextsize; in xfs_inode_alloc_unitsize()
/linux-6.12.1/fs/xfs/scrub/
Dagheader.c153 if (sb->sb_rextsize != cpu_to_be32(mp->m_sb.sb_rextsize)) in xchk_superblock()