XFS_FSB_TO_B
XFS_STATS_ADD(mp, xs_xstrat_bytes, XFS_FSB_TO_B(mp, bma.length));
size = XFS_FSB_TO_B(mp, bno + count);
dp->i_disk_size = XFS_FSB_TO_B(mp, bno);
if (XFS_FSB_TO_B(mp, fo) > XFS_DIR2_LEAF_OFFSET + args->geo->blksize)
len = min(XFS_FSB_TO_B(mp, imap->br_startoff + imap->br_blockcount),
igeo->inode_cluster_size = XFS_FSB_TO_B(mp, igeo->blocks_per_cluster);
extsize_bytes = XFS_FSB_TO_B(mp, extsize);
blocksize_bytes = XFS_FSB_TO_B(mp, mp->m_sb.sb_rextsize);
cowextsize_bytes = XFS_FSB_TO_B(mp, cowextsize);
blocksize_bytes = XFS_FSB_TO_B(mp, mp->m_sb.sb_rextsize);
XFS_FSB_TO_B(mp, sbp->sb_agblocks) < XFS_MIN_AG_BYTES ||
XFS_FSB_TO_B(mp, sbp->sb_agblocks) > XFS_MAX_AG_BYTES ||
if (XFS_FSB_TO_B(mp, sbp->sb_logblocks) > XFS_MAX_LOG_BYTES) {
XFS_FSB_TO_B(mp, sbp->sb_logblocks),
if (!xfs_validate_stripe_geometry(mp, XFS_FSB_TO_B(mp, sbp->sb_unit),
XFS_FSB_TO_B(mp, sbp->sb_width), 0,
byte_cnt = XFS_FSB_TO_B(mp, mval[n].br_blockcount);
byte_cnt = XFS_FSB_TO_B(mp, mval[n].br_blockcount);
XFS_FSB_TO_B(mp, 1));
XFS_FSB_TO_B(mp, 1)) +
XFS_FSB_TO_B(mp, 1));
xfs_calc_buf_res(1, XFS_FSB_TO_B(mp, mp->m_rsumblocks));
XFS_FSB_TO_B(mp, 1)) +
XFS_FSB_TO_B(mp, 1));
XFS_FSB_TO_B(mp, 1))),
XFS_FSB_TO_B(mp, 1))));
xfs_calc_buf_res(XFS_DA_NODE_MAXDEPTH, XFS_FSB_TO_B(mp, 1));
XFS_FSB_TO_B(mp, 1));
XFS_FSB_TO_B(mp, 1)) +
(uint)XFS_FSB_TO_B(mp,
XFS_FSB_TO_B(mp, 1))));
XFS_FSB_TO_B(mp, XFS_DQUOT_CLUSTER_SIZE_FSB) - 1);
XFS_FSB_TO_B(mp, 1)) +
XFS_FSB_TO_B(mp, 1));
XFS_FSB_TO_B(mp, 1));
size = XFS_FSB_TO_B(mp, 1);
unsigned int blksz = XFS_FSB_TO_B(mp, 1);
unsigned int blksz = XFS_FSB_TO_B(mp, 1);
XFS_FSB_TO_B(mp, 1));
xfs_calc_buf_res(XFS_DIROP_LOG_COUNT(mp), XFS_FSB_TO_B(mp, 1));
xfs_calc_buf_res(XFS_DIROP_LOG_COUNT(mp), XFS_FSB_TO_B(mp, 1));
(uint)XFS_FSB_TO_B(mp, 1) +
xfs_calc_buf_res(XFS_DIROP_LOG_COUNT(mp), XFS_FSB_TO_B(mp, 1)) +
(XFS_FSB_TO_B(mp, XFS_DAENTER_BLOCKS(mp, XFS_DATA_FORK)) + \
(XFS_FSB_TO_B(mp, XFS_DAENTER_BMAPS(mp, XFS_DATA_FORK) + 1)))
if (!error && XFS_FSB_TO_B(mp, last) == geo->blksize &&
XFS_FSB_TO_B(mp, last) > geo->blksize &&
XFS_FSB_TO_B(mp, last) == dp->i_disk_size) {
XFS_FSB_TO_B(sc->mp, off));
if (rbmip->i_disk_size < XFS_FSB_TO_B(mp, rtb->rbmblocks)) {
if (sc->ip->i_disk_size < XFS_FSB_TO_B(mp, rtb->rbmblocks))
sc->ip->i_disk_size = XFS_FSB_TO_B(mp, rtb->rbmblocks);
XFS_FSB_TO_B(sc->mp, sc->mp->m_sb.sb_rbmblocks));
if (XFS_FSB_TO_B(mp, xfs_rtbitmap_blockcount(mp)) !=
if (rsumip->i_disk_size < XFS_FSB_TO_B(mp, rts->rsumblocks)) {
XFS_FSB_TO_B(mp, mp->m_rsumblocks), &sc->xfile);
error = xrep_tempfile_set_isize(sc, XFS_FSB_TO_B(mp, rts->rsumblocks));
byte_cnt = XFS_FSB_TO_B(sc->mp, mval[n].br_blockcount);
loff_t pos = XFS_FSB_TO_B(mp, off);
loff_t cow_offset = XFS_FSB_TO_B(mp, cow_fsb);
wpc->iomap.length = XFS_FSB_TO_B(mp, count_fsb);
XFS_FSB_TO_B(mp, mp->m_attr_geo->fsbcount));
if (range.start >= XFS_FSB_TO_B(mp, max_blocks) ||
range.minlen > XFS_FSB_TO_B(mp, mp->m_ag_max_usable) ||
XFS_FSB_TO_B(mp, max_blocks) - range.start);
XFS_FSB_TO_B(mp, ac.reserved_blocks) -
return XFS_FSB_TO_B(ip->i_mount, blocks);
fa->fsx_extsize = XFS_FSB_TO_B(mp, ip->i_extsize);
fa->fsx_extsize = XFS_FSB_TO_B(mp, ip->i_extsize);
fa->fsx_cowextsize = XFS_FSB_TO_B(mp, ip->i_cowextsize);
XFS_FSB_TO_B(mp, ip->i_extsize) != fa->fsx_extsize)
rtextsize_bytes = XFS_FSB_TO_B(mp, mp->m_sb.sb_rextsize);
length = XFS_FSB_TO_B(mp, cmap.br_startoff + cmap.br_blockcount);
iomap->offset = XFS_FSB_TO_B(mp, imap->br_startoff);
iomap->length = XFS_FSB_TO_B(mp, imap->br_blockcount);
trace_xfs_iomap_alloc(ip, offset, XFS_FSB_TO_B(mp, count_fsb),
iomap->offset = XFS_FSB_TO_B(ip->i_mount, offset_fsb);
iomap->length = XFS_FSB_TO_B(ip->i_mount, end_fsb - offset_fsb);
min(count, XFS_FSB_TO_B(mp, imap.br_blockcount));
if (align && XFS_ISIZE(ip) < XFS_FSB_TO_B(mp, align))
if (XFS_ISIZE(ip) < XFS_FSB_TO_B(mp, mp->m_allocsize_blocks))
if (XFS_ISIZE(ip) < XFS_FSB_TO_B(mp, mp->m_dalign) ||
i_size = XFS_FSB_TO_B(mp, offset_fsb + count_fsb);
xfs_fsize_t len = XFS_FSB_TO_B(mp, end_fsb - offset_fsb);
length = XFS_FSB_TO_B(mp, end_fsb) - offset;
return XFS_FSB_TO_B(mp, xfs_get_extsz_hint(ip) ? : 1);
return XFS_FSB_TO_B(mp, mp->m_swidth);
return XFS_FSB_TO_B(mp, mp->m_groups[XG_TYPE_RTG].awu_max);
return XFS_FSB_TO_B(mp, mp->m_groups[XG_TYPE_AG].awu_max);
bs1->bs_extsize = XFS_FSB_TO_B(mp, bstat->bs_extsize_blks);
bs1->bs_cowextsize = XFS_FSB_TO_B(mp, bstat->bs_cowextsize_blks);
XFS_FSB_TO_B(mp, max_write) >> 10);
XFS_FSB_TO_B(mp, max_group) >> 10);
XFS_FSB_TO_B(mp, max_group_write) >> 10);
loff_t pos = XFS_FSB_TO_B(mp, rec->rm_offset);
pos += XFS_FSB_TO_B(mp,
return XFS_FSB_TO_B(mp, end_cross - start_cross) >> PAGE_SHIFT;
j = (int)XFS_FSB_TO_B(mp, XFS_DQUOT_CLUSTER_SIZE_FSB) /
dst->d_spc_hardlimit = XFS_FSB_TO_B(mp, dqp->q_blk.hardlimit);
dst->d_spc_softlimit = XFS_FSB_TO_B(mp, dqp->q_blk.softlimit);
dst->d_space = XFS_FSB_TO_B(mp, dqp->q_blk.reserved);
dst->d_rt_spc_hardlimit = XFS_FSB_TO_B(mp, dqp->q_rtb.hardlimit);
dst->d_rt_spc_softlimit = XFS_FSB_TO_B(mp, dqp->q_rtb.softlimit);
dst->d_rt_space = XFS_FSB_TO_B(mp, dqp->q_rtb.reserved);
newlen = XFS_FSB_TO_B(mp, dmap->br_startoff + dmap->br_blockcount);
XFS_FSB_TO_B(src->i_mount, remapped_len));
if (XFS_FSB_TO_B(mp, in->extsize) > XFS_MAX_RTEXTSIZE ||
XFS_FSB_TO_B(mp, in->extsize) < XFS_MIN_RTEXTSIZE)
fserror_report_data_lost(VFS_I(ip), XFS_FSB_TO_B(mp, fileoff),
XFS_FSB_TO_B(mp, blocks), GFP_NOFS);
XFS_FSB_TO_B(mp, min(iz.zone_capacity, XFS_MAX_BMBT_EXTLEN)) >>
XFS_FSB_TO_B(mp, mp->m_groups[XG_TYPE_RTG].blocks);
return XFS_FSB_TO_B(mp, count_fsb);
len = XFS_FSB_TO_B(mp, irec.rm_blockcount);
chunk->offset = XFS_FSB_TO_B(mp, irec.rm_offset);
bio->bi_iter.bi_size = XFS_FSB_TO_B(mp, rtg_blocks(rtg));