Home
last modified time | relevance | path

Searched refs:XFS_FSB_TO_B (Results 1 – 23 of 23) sorted by relevance

/fs/xfs/libxfs/
Dxfs_trans_resv.c138 XFS_FSB_TO_B(mp, 1)) + in xfs_calc_inobt_res()
140 XFS_FSB_TO_B(mp, 1)); in xfs_calc_inobt_res()
187 XFS_FSB_TO_B(mp, 1)); in xfs_calc_inode_chunk_res()
192 size = XFS_FSB_TO_B(mp, 1); in xfs_calc_inode_chunk_res()
210 unsigned int blksz = XFS_FSB_TO_B(mp, 1); in xfs_rtalloc_log_count()
264 unsigned int blksz = XFS_FSB_TO_B(mp, 1); in xfs_calc_write_reservation()
312 unsigned int blksz = XFS_FSB_TO_B(mp, 1); in xfs_calc_itruncate_reservation()
350 XFS_FSB_TO_B(mp, 1))), in xfs_calc_rename_reservation()
353 XFS_FSB_TO_B(mp, 1)))); in xfs_calc_rename_reservation()
390 XFS_FSB_TO_B(mp, 1))), in xfs_calc_link_reservation()
[all …]
Dxfs_trans_resv.h64 (XFS_FSB_TO_B(mp, XFS_DAENTER_BLOCKS(mp, XFS_DATA_FORK)) + \
65 (XFS_FSB_TO_B(mp, XFS_DAENTER_BMAPS(mp, XFS_DATA_FORK) + 1)))
Dxfs_inode_buf.c607 extsize_bytes = XFS_FSB_TO_B(mp, extsize); in xfs_inode_validate_extsize()
636 blocksize_bytes = XFS_FSB_TO_B(mp, mp->m_sb.sb_rextsize); in xfs_inode_validate_extsize()
695 cowextsize_bytes = XFS_FSB_TO_B(mp, cowextsize); in xfs_inode_validate_cowextsize()
Dxfs_dir2.c586 size = XFS_FSB_TO_B(mp, bno + count); in xfs_dir2_grow_inode()
608 rval = XFS_FSB_TO_B(args->dp->i_mount, last) == args->geo->blksize; in xfs_dir2_isblock()
706 dp->i_disk_size = XFS_FSB_TO_B(mp, bno); in xfs_dir2_shrink_inode()
Dxfs_sb.c414 XFS_FSB_TO_B(mp, sbp->sb_agblocks) < XFS_MIN_AG_BYTES || in xfs_validate_sb_common()
415 XFS_FSB_TO_B(mp, sbp->sb_agblocks) > XFS_MAX_AG_BYTES || in xfs_validate_sb_common()
472 if (!xfs_validate_stripe_geometry(mp, XFS_FSB_TO_B(mp, sbp->sb_unit), in xfs_validate_sb_common()
473 XFS_FSB_TO_B(mp, sbp->sb_width), 0, false)) in xfs_validate_sb_common()
Dxfs_format.h450 #define XFS_FSB_TO_B(mp,fsbno) ((xfs_fsize_t)(fsbno) << (mp)->m_sb.sb_blocklog) macro
Dxfs_dir2_leaf.c1741 if (XFS_FSB_TO_B(mp, fo) > XFS_DIR2_LEAF_OFFSET + args->geo->blksize) in xfs_dir2_node_to_leaf()
Dxfs_ialloc.c2842 igeo->inode_cluster_size = XFS_FSB_TO_B(mp, igeo->blocks_per_cluster); in xfs_ialloc_setup_geometry()
Dxfs_bmap.c4647 XFS_STATS_ADD(mp, xs_xstrat_bytes, XFS_FSB_TO_B(mp, bma.length)); in xfs_bmapi_convert_delalloc()
4871 uint64_t rtexts = XFS_FSB_TO_B(mp, del->br_blockcount); in xfs_bmap_del_extent_delay()
/fs/xfs/
Dxfs_qm_syscalls.c432 dst->d_spc_hardlimit = XFS_FSB_TO_B(mp, dqp->q_blk.hardlimit); in xfs_qm_scall_getquota_fill_qc()
433 dst->d_spc_softlimit = XFS_FSB_TO_B(mp, dqp->q_blk.softlimit); in xfs_qm_scall_getquota_fill_qc()
436 dst->d_space = XFS_FSB_TO_B(mp, dqp->q_blk.reserved); in xfs_qm_scall_getquota_fill_qc()
442 dst->d_rt_spc_hardlimit = XFS_FSB_TO_B(mp, dqp->q_rtb.hardlimit); in xfs_qm_scall_getquota_fill_qc()
443 dst->d_rt_spc_softlimit = XFS_FSB_TO_B(mp, dqp->q_rtb.softlimit); in xfs_qm_scall_getquota_fill_qc()
444 dst->d_rt_space = XFS_FSB_TO_B(mp, dqp->q_rtb.reserved); in xfs_qm_scall_getquota_fill_qc()
Dxfs_iomap.c79 iomap->offset = XFS_FSB_TO_B(mp, imap->br_startoff); in xfs_bmbt_to_iomap()
80 iomap->length = XFS_FSB_TO_B(mp, imap->br_blockcount); in xfs_bmbt_to_iomap()
102 iomap->offset = XFS_FSB_TO_B(ip->i_mount, offset_fsb); in xfs_hole_to_iomap()
103 iomap->length = XFS_FSB_TO_B(ip->i_mount, end_fsb - offset_fsb); in xfs_hole_to_iomap()
140 if (align && XFS_ISIZE(ip) < XFS_FSB_TO_B(mp, align)) in xfs_eof_alignment()
379 if (XFS_ISIZE(ip) < XFS_FSB_TO_B(mp, mp->m_allocsize_blocks)) in xfs_iomap_prealloc_size()
386 if (XFS_ISIZE(ip) < XFS_FSB_TO_B(mp, mp->m_dalign) || in xfs_iomap_prealloc_size()
569 i_size = XFS_FSB_TO_B(mp, offset_fsb + count_fsb); in xfs_iomap_write_unwritten()
770 length = XFS_FSB_TO_B(mp, end_fsb) - offset; in xfs_direct_write_iomap_begin()
838 length = XFS_FSB_TO_B(mp, cmap.br_startoff + cmap.br_blockcount); in xfs_direct_write_iomap_begin()
[all …]
Dxfs_discard.c187 if (range.start >= XFS_FSB_TO_B(mp, mp->m_sb.sb_dblocks) || in xfs_ioc_trim()
188 range.minlen > XFS_FSB_TO_B(mp, mp->m_ag_max_usable) || in xfs_ioc_trim()
214 range.len = XFS_FSB_TO_B(mp, blocks_trimmed); in xfs_ioc_trim()
Dxfs_itable.c326 bs1->bs_extsize = XFS_FSB_TO_B(mp, bstat->bs_extsize_blks); in xfs_bulkstat_to_bstat()
334 bs1->bs_cowextsize = XFS_FSB_TO_B(mp, bstat->bs_cowextsize_blks); in xfs_bulkstat_to_bstat()
Dxfs_rtalloc.c949 if (XFS_FSB_TO_B(mp, in->extsize) > XFS_MAX_RTEXTSIZE || in xfs_growfs_rt()
950 XFS_FSB_TO_B(mp, in->extsize) < XFS_MIN_RTEXTSIZE) in xfs_growfs_rt()
981 nrsumsize = XFS_FSB_TO_B(mp, nrsumblocks); in xfs_growfs_rt()
1045 nmp->m_rsumsize = nrsumsize = XFS_FSB_TO_B(mp, nrsumblocks); in xfs_growfs_rt()
Dxfs_symlink.c56 byte_cnt = XFS_FSB_TO_B(mp, mval[n].br_blockcount); in xfs_readlink_bmap_ilocked()
291 byte_cnt = XFS_FSB_TO_B(mp, mval[n].br_blockcount); in xfs_symlink()
Dxfs_ioctl.c1070 fa->fsx_extsize = XFS_FSB_TO_B(mp, ip->i_extsize); in xfs_fill_fsxattr()
1083 fa->fsx_extsize = XFS_FSB_TO_B(mp, ip->i_extsize); in xfs_fill_fsxattr()
1088 fa->fsx_cowextsize = XFS_FSB_TO_B(mp, ip->i_cowextsize); in xfs_fill_fsxattr()
1303 XFS_FSB_TO_B(mp, ip->i_extsize) != fa->fsx_extsize) in xfs_ioctl_setattr_check_extsize()
1321 rtextsize_bytes = XFS_FSB_TO_B(mp, mp->m_sb.sb_rextsize); in xfs_ioctl_setattr_check_extsize()
Dxfs_iops.c525 return XFS_FSB_TO_B(mp, xfs_get_extsz_hint(ip)); in xfs_stat_blksize()
542 return XFS_FSB_TO_B(mp, mp->m_swidth); in xfs_stat_blksize()
Dxfs_aops.c387 loff_t cow_offset = XFS_FSB_TO_B(mp, cow_fsb); in xfs_map_blocks()
Dxfs_reflink.c1291 newlen = XFS_FSB_TO_B(mp, dmap->br_startoff + dmap->br_blockcount); in xfs_reflink_remap_extent()
1386 XFS_FSB_TO_B(src->i_mount, remapped_len)); in xfs_reflink_remap_blocks()
Dxfs_file.c54 rextbytes = XFS_FSB_TO_B(mp, mp->m_sb.sb_rextsize); in xfs_is_falloc_aligned()
61 mask = XFS_FSB_TO_B(mp, mp->m_sb.sb_rextsize) - 1; in xfs_is_falloc_aligned()
Dxfs_log.c666 } else if (XFS_FSB_TO_B(mp, mp->m_sb.sb_logblocks) > XFS_MAX_LOG_BYTES) { in xfs_log_mount()
669 XFS_FSB_TO_B(mp, mp->m_sb.sb_logblocks), in xfs_log_mount()
Dxfs_qm.c852 j = (int)XFS_FSB_TO_B(mp, XFS_DQUOT_CLUSTER_SIZE_FSB) / in xfs_qm_reset_dqcounts()
/fs/xfs/scrub/
Drtbitmap.c103 XFS_FSB_TO_B(sc->mp, sc->mp->m_sb.sb_rbmblocks)) { in xchk_rtbitmap()