Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/fs/xfs/scrub/
Drtbitmap.c52 startblock = rec->ar_startext * tp->t_mountp->m_sb.sb_rextsize; in xchk_rtbitmap_rec()
53 blockcount = rec->ar_extcount * tp->t_mountp->m_sb.sb_rextsize; in xchk_rtbitmap_rec()
183 do_div(startext, sc->mp->m_sb.sb_rextsize); in xchk_xref_is_used_rt_space()
184 do_div(endext, sc->mp->m_sb.sb_rextsize); in xchk_xref_is_used_rt_space()
Dagheader.c130 if (sb->sb_rextsize != cpu_to_be32(mp->m_sb.sb_rextsize)) in xchk_superblock()
/kernel/linux/linux-5.10/fs/xfs/
Dxfs_bmap_util.c86 prod = align / mp->m_sb.sb_rextsize; in xfs_bmap_rtalloc()
93 ASSERT(ap->length % mp->m_sb.sb_rextsize == 0); in xfs_bmap_rtalloc()
105 ralen = ap->length / mp->m_sb.sb_rextsize; in xfs_bmap_rtalloc()
113 if (ralen * mp->m_sb.sb_rextsize >= MAXEXTLEN) in xfs_bmap_rtalloc()
114 ralen = MAXEXTLEN / mp->m_sb.sb_rextsize; in xfs_bmap_rtalloc()
134 ap->blkno = rtx * mp->m_sb.sb_rextsize; in xfs_bmap_rtalloc()
144 do_div(ap->blkno, mp->m_sb.sb_rextsize); in xfs_bmap_rtalloc()
154 ap->blkno *= mp->m_sb.sb_rextsize; in xfs_bmap_rtalloc()
155 ralen *= mp->m_sb.sb_rextsize; in xfs_bmap_rtalloc()
794 resrtextents /= mp->m_sb.sb_rextsize; in xfs_alloc_file_space()
[all …]
Dxfs_rtalloc.c928 (sbp->sb_rblocks && (in->extsize != sbp->sb_rextsize))) in xfs_growfs_rt()
1001 nsbp->sb_rextsize = in->extsize; in xfs_growfs_rt()
1006 nsbp->sb_blocksize * nsbp->sb_rextsize); in xfs_growfs_rt()
1008 do_div(nsbp->sb_rextents, nsbp->sb_rextsize); in xfs_growfs_rt()
1064 if (nsbp->sb_rextsize != sbp->sb_rextsize) in xfs_growfs_rt()
1066 nsbp->sb_rextsize - sbp->sb_rextsize); in xfs_growfs_rt()
Dxfs_fsmap.c461 irec.rm_startblock = rec->ar_startext * mp->m_sb.sb_rextsize; in xfs_getfsmap_rtdev_rtbitmap_helper()
463 irec.rm_blockcount = rec->ar_extcount * mp->m_sb.sb_rextsize; in xfs_getfsmap_rtdev_rtbitmap_helper()
531 do_div(alow.ar_startext, tp->t_mountp->m_sb.sb_rextsize); in xfs_getfsmap_rtdev_rtbitmap_query()
532 if (do_div(ahigh.ar_startext, tp->t_mountp->m_sb.sb_rextsize)) in xfs_getfsmap_rtdev_rtbitmap_query()
Dxfs_file.c49 if (!is_power_of_2(mp->m_sb.sb_rextsize)) { in xfs_is_falloc_aligned()
53 rextbytes = XFS_FSB_TO_B(mp, mp->m_sb.sb_rextsize); in xfs_is_falloc_aligned()
60 mask = XFS_FSB_TO_B(mp, mp->m_sb.sb_rextsize) - 1; in xfs_is_falloc_aligned()
Dxfs_trans.c513 be32_add_cpu(&sbp->sb_rextsize, tp->t_rextsize_delta); in xfs_trans_apply_sb_deltas()
627 mp->m_sb.sb_rextsize += tp->t_rextsize_delta; in xfs_trans_unreserve_and_mod_sb()
Dxfs_ioctl.c1221 if (mp->m_sb.sb_rblocks == 0 || mp->m_sb.sb_rextsize == 0 || in xfs_ioctl_setattr_xflags()
1222 (ip->i_d.di_extsize % mp->m_sb.sb_rextsize)) in xfs_ioctl_setattr_xflags()
1358 size = mp->m_sb.sb_rextsize << mp->m_sb.sb_blocklog; in xfs_ioctl_setattr_check_extsize()
Dxfs_iomap.c210 resrtextents /= mp->m_sb.sb_rextsize; in xfs_iomap_write_direct()
Dxfs_super.c839 sbp->sb_frextents * sbp->sb_rextsize; in xfs_fs_statfs()
Dxfs_inode.c66 return ip->i_mount->m_sb.sb_rextsize; in xfs_get_extsz_hint()
/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_sb.c320 (sbp->sb_rextsize * sbp->sb_blocksize > XFS_MAX_RTEXTSIZE) || in xfs_validate_sb_common()
321 (sbp->sb_rextsize * sbp->sb_blocksize < XFS_MIN_RTEXTSIZE) || in xfs_validate_sb_common()
332 if (sbp->sb_rextsize * sbp->sb_blocksize > XFS_MAX_RTEXTSIZE || in xfs_validate_sb_common()
333 sbp->sb_rextsize * sbp->sb_blocksize < XFS_MIN_RTEXTSIZE) { in xfs_validate_sb_common()
350 rexts = div_u64(sbp->sb_rblocks, sbp->sb_rextsize); in xfs_validate_sb_common()
498 to->sb_rextsize = be32_to_cpu(from->sb_rextsize); in __xfs_sb_from_disk()
641 to->sb_rextsize = cpu_to_be32(from->sb_rextsize); in xfs_sb_to_disk()
1112 geo->rtextsize = sbp->sb_rextsize; in xfs_fs_geometry()
Dxfs_format.h107 xfs_agblock_t sb_rextsize; /* realtime extent size, blocks */ member
198 __be32 sb_rextsize; /* realtime extent size, blocks */ member
Dxfs_bmap.c3072 if (rt && (temp = (align_alen % mp->m_sb.sb_rextsize))) { in xfs_bmap_extsize_align()
3099 align_alen -= align_alen % mp->m_sb.sb_rextsize; in xfs_bmap_extsize_align()
4820 do_div(rtexts, mp->m_sb.sb_rextsize); in xfs_bmap_del_extent_delay()
5052 len = div_u64_rem(del->br_blockcount, mp->m_sb.sb_rextsize, in xfs_bmap_del_extent_real()
5060 mp->m_sb.sb_rextsize, &mod); in xfs_bmap_del_extent_real()
5069 nblks = len * mp->m_sb.sb_rextsize; in xfs_bmap_del_extent_real()
5402 div_u64_rem(sum, mp->m_sb.sb_rextsize, &mod); in __xfs_bunmapi()
5449 div_u64_rem(del.br_startblock, mp->m_sb.sb_rextsize, &mod); in __xfs_bunmapi()
5451 xfs_extlen_t off = mp->m_sb.sb_rextsize - mod; in __xfs_bunmapi()
Dxfs_trans_resv.c213 rtbmp_bytes = (MAXEXTLEN / mp->m_sb.sb_rextsize) / NBBY; in xfs_rtalloc_log_count()
Dxfs_inode_buf.c609 blocksize_bytes = mp->m_sb.sb_rextsize << mp->m_sb.sb_blocklog; in xfs_inode_validate_extsize()