/linux-6.12.1/fs/xfs/libxfs/ |
D | xfs_trans_resv.c | 151 XFS_FSB_TO_B(mp, 1)) + in xfs_calc_inobt_res() 153 XFS_FSB_TO_B(mp, 1)); in xfs_calc_inobt_res() 200 XFS_FSB_TO_B(mp, 1)); in xfs_calc_inode_chunk_res() 205 size = XFS_FSB_TO_B(mp, 1); in xfs_calc_inode_chunk_res() 264 unsigned int blksz = XFS_FSB_TO_B(mp, 1); in xfs_calc_refcountbt_reservation() 302 unsigned int blksz = XFS_FSB_TO_B(mp, 1); in xfs_calc_write_reservation() 382 unsigned int blksz = XFS_FSB_TO_B(mp, 1); in xfs_calc_itruncate_reservation() 475 XFS_FSB_TO_B(mp, 1)); in xfs_calc_rename_reservation() 479 XFS_FSB_TO_B(mp, 1)); in xfs_calc_rename_reservation() 586 xfs_calc_buf_res(XFS_DIROP_LOG_COUNT(mp), XFS_FSB_TO_B(mp, 1)); in xfs_calc_link_reservation() [all …]
|
D | xfs_trans_resv.h | 64 (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)))
|
D | xfs_sb.c | 455 XFS_FSB_TO_B(mp, sbp->sb_agblocks) < XFS_MIN_AG_BYTES || in xfs_validate_sb_common() 456 XFS_FSB_TO_B(mp, sbp->sb_agblocks) > XFS_MAX_AG_BYTES || in xfs_validate_sb_common() 484 if (XFS_FSB_TO_B(mp, sbp->sb_logblocks) > XFS_MAX_LOG_BYTES) { in xfs_validate_sb_common() 487 XFS_FSB_TO_B(mp, sbp->sb_logblocks), in xfs_validate_sb_common() 543 if (!xfs_validate_stripe_geometry(mp, XFS_FSB_TO_B(mp, sbp->sb_unit), in xfs_validate_sb_common() 544 XFS_FSB_TO_B(mp, sbp->sb_width), 0, in xfs_validate_sb_common()
|
D | xfs_symlink_remote.c | 264 byte_cnt = XFS_FSB_TO_B(mp, mval[n].br_blockcount); in xfs_symlink_remote_read() 358 byte_cnt = XFS_FSB_TO_B(mp, mval[n].br_blockcount); in xfs_symlink_write_target()
|
D | xfs_inode_buf.c | 716 extsize_bytes = XFS_FSB_TO_B(mp, extsize); in xfs_inode_validate_extsize() 745 blocksize_bytes = XFS_FSB_TO_B(mp, mp->m_sb.sb_rextsize); in xfs_inode_validate_extsize() 804 cowextsize_bytes = XFS_FSB_TO_B(mp, cowextsize); in xfs_inode_validate_cowextsize()
|
D | xfs_dir2.c | 641 size = XFS_FSB_TO_B(mp, bno + count); in xfs_dir2_grow_inode() 722 dp->i_disk_size = XFS_FSB_TO_B(mp, bno); in xfs_dir2_shrink_inode()
|
D | xfs_exchmaps.c | 96 len = min(XFS_FSB_TO_B(mp, imap->br_startoff + imap->br_blockcount), in xfs_exchmaps_update_size()
|
D | xfs_format.h | 462 #define XFS_FSB_TO_B(mp,fsbno) ((xfs_fsize_t)(fsbno) << (mp)->m_sb.sb_blocklog) macro
|
/linux-6.12.1/fs/xfs/ |
D | xfs_qm_syscalls.c | 404 dst->d_spc_hardlimit = XFS_FSB_TO_B(mp, dqp->q_blk.hardlimit); in xfs_qm_scall_getquota_fill_qc() 405 dst->d_spc_softlimit = XFS_FSB_TO_B(mp, dqp->q_blk.softlimit); in xfs_qm_scall_getquota_fill_qc() 408 dst->d_space = XFS_FSB_TO_B(mp, dqp->q_blk.reserved); in xfs_qm_scall_getquota_fill_qc() 414 dst->d_rt_spc_hardlimit = XFS_FSB_TO_B(mp, dqp->q_rtb.hardlimit); in xfs_qm_scall_getquota_fill_qc() 415 dst->d_rt_spc_softlimit = XFS_FSB_TO_B(mp, dqp->q_rtb.softlimit); in xfs_qm_scall_getquota_fill_qc() 416 dst->d_rt_space = XFS_FSB_TO_B(mp, dqp->q_rtb.reserved); in xfs_qm_scall_getquota_fill_qc()
|
D | xfs_notify_failure.c | 40 loff_t pos = XFS_FSB_TO_B(mp, rec->rm_offset); in xfs_failure_pgoff() 43 pos += XFS_FSB_TO_B(mp, in xfs_failure_pgoff() 65 return XFS_FSB_TO_B(mp, end_cross - start_cross) >> PAGE_SHIFT; in xfs_failure_pgcnt()
|
D | xfs_iomap.c | 128 iomap->offset = XFS_FSB_TO_B(mp, imap->br_startoff); in xfs_bmbt_to_iomap() 129 iomap->length = XFS_FSB_TO_B(mp, imap->br_blockcount); in xfs_bmbt_to_iomap() 156 iomap->offset = XFS_FSB_TO_B(ip->i_mount, offset_fsb); in xfs_hole_to_iomap() 157 iomap->length = XFS_FSB_TO_B(ip->i_mount, end_fsb - offset_fsb); in xfs_hole_to_iomap() 194 if (align && XFS_ISIZE(ip) < XFS_FSB_TO_B(mp, align)) in xfs_eof_alignment() 453 if (XFS_ISIZE(ip) < XFS_FSB_TO_B(mp, mp->m_allocsize_blocks)) in xfs_iomap_prealloc_size() 460 if (XFS_ISIZE(ip) < XFS_FSB_TO_B(mp, mp->m_dalign) || in xfs_iomap_prealloc_size() 638 i_size = XFS_FSB_TO_B(mp, offset_fsb + count_fsb); in xfs_iomap_write_unwritten() 840 length = XFS_FSB_TO_B(mp, end_fsb) - offset; in xfs_direct_write_iomap_begin() 909 length = XFS_FSB_TO_B(mp, cmap.br_startoff + cmap.br_blockcount); in xfs_direct_write_iomap_begin()
|
D | xfs_discard.c | 686 if (range.start >= XFS_FSB_TO_B(mp, max_blocks) || in xfs_ioc_trim() 687 range.minlen > XFS_FSB_TO_B(mp, mp->m_ag_max_usable) || in xfs_ioc_trim() 710 XFS_FSB_TO_B(mp, max_blocks) - range.start); in xfs_ioc_trim()
|
D | xfs_ioctl.c | 415 fa->fsx_extsize = XFS_FSB_TO_B(mp, ip->i_extsize); in xfs_fill_fsxattr() 428 fa->fsx_extsize = XFS_FSB_TO_B(mp, ip->i_extsize); in xfs_fill_fsxattr() 433 fa->fsx_cowextsize = XFS_FSB_TO_B(mp, ip->i_cowextsize); in xfs_fill_fsxattr() 606 XFS_FSB_TO_B(mp, ip->i_extsize) != fa->fsx_extsize) in xfs_ioctl_setattr_check_extsize() 624 rtextsize_bytes = XFS_FSB_TO_B(mp, mp->m_sb.sb_rextsize); in xfs_ioctl_setattr_check_extsize()
|
D | xfs_itable.c | 360 bs1->bs_extsize = XFS_FSB_TO_B(mp, bstat->bs_extsize_blks); in xfs_bulkstat_to_bstat() 368 bs1->bs_cowextsize = XFS_FSB_TO_B(mp, bstat->bs_cowextsize_blks); in xfs_bulkstat_to_bstat()
|
D | xfs_aops.c | 385 loff_t cow_offset = XFS_FSB_TO_B(mp, cow_fsb); in xfs_map_blocks()
|
D | xfs_iops.c | 548 return XFS_FSB_TO_B(mp, xfs_get_extsz_hint(ip) ? : 1); in xfs_stat_blksize() 565 return XFS_FSB_TO_B(mp, mp->m_swidth); in xfs_stat_blksize()
|
D | xfs_rtalloc.c | 908 if (XFS_FSB_TO_B(mp, in->extsize) > XFS_MAX_RTEXTSIZE || in xfs_growfs_rt() 909 XFS_FSB_TO_B(mp, in->extsize) < XFS_MIN_RTEXTSIZE) in xfs_growfs_rt()
|
D | xfs_reflink.c | 1299 newlen = XFS_FSB_TO_B(mp, dmap->br_startoff + dmap->br_blockcount); in xfs_reflink_remap_extent() 1396 XFS_FSB_TO_B(src->i_mount, remapped_len)); in xfs_reflink_remap_blocks()
|
/linux-6.12.1/fs/xfs/scrub/ |
D | rtbitmap_repair.c | 149 if (sc->ip->i_disk_size < XFS_FSB_TO_B(mp, rtb->rbmblocks)) in xrep_rtbitmap_geometry() 150 sc->ip->i_disk_size = XFS_FSB_TO_B(mp, rtb->rbmblocks); in xrep_rtbitmap_geometry()
|
D | rtsummary.c | 66 error = xfile_create(descr, XFS_FSB_TO_B(mp, mp->m_rsumblocks), in xchk_setup_rtsummary() 211 if (XFS_FSB_TO_B(mp, rtbmp_blocks) != mp->m_rbmip->i_disk_size) in xchk_rtsum_compute() 334 if (mp->m_rsumip->i_disk_size < XFS_FSB_TO_B(mp, rts->rsumblocks)) { in xchk_rtsummary()
|
D | rtsummary_repair.c | 148 error = xrep_tempfile_set_isize(sc, XFS_FSB_TO_B(mp, rts->rsumblocks)); in xrep_rtsummary()
|
D | rtbitmap.c | 182 if (mp->m_rbmip->i_disk_size < XFS_FSB_TO_B(mp, rtb->rbmblocks)) { in xchk_rtbitmap()
|
D | symlink_repair.c | 133 byte_cnt = XFS_FSB_TO_B(sc->mp, mval[n].br_blockcount); in xrep_symlink_salvage_remote()
|
D | dir_repair.c | 570 if (!error && XFS_FSB_TO_B(mp, last) == geo->blksize && in xrep_dir_guess_format() 584 XFS_FSB_TO_B(mp, last) > geo->blksize && in xrep_dir_guess_format() 585 XFS_FSB_TO_B(mp, last) == dp->i_disk_size) { in xrep_dir_guess_format()
|
D | tempfile.c | 382 loff_t pos = XFS_FSB_TO_B(mp, off); in xrep_tempfile_copyin()
|