Home
last modified time | relevance | path

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

12

/linux-6.12.1/fs/xfs/libxfs/
Dxfs_trans_resv.c151 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 …]
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_sb.c455 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()
Dxfs_symlink_remote.c264 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()
Dxfs_inode_buf.c716 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()
Dxfs_dir2.c641 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()
Dxfs_exchmaps.c96 len = min(XFS_FSB_TO_B(mp, imap->br_startoff + imap->br_blockcount), in xfs_exchmaps_update_size()
Dxfs_format.h462 #define XFS_FSB_TO_B(mp,fsbno) ((xfs_fsize_t)(fsbno) << (mp)->m_sb.sb_blocklog) macro
/linux-6.12.1/fs/xfs/
Dxfs_qm_syscalls.c404 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()
Dxfs_notify_failure.c40 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()
Dxfs_iomap.c128 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()
Dxfs_discard.c686 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()
Dxfs_ioctl.c415 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()
Dxfs_itable.c360 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()
Dxfs_aops.c385 loff_t cow_offset = XFS_FSB_TO_B(mp, cow_fsb); in xfs_map_blocks()
Dxfs_iops.c548 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()
Dxfs_rtalloc.c908 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()
Dxfs_reflink.c1299 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/
Drtbitmap_repair.c149 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()
Drtsummary.c66 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()
Drtsummary_repair.c148 error = xrep_tempfile_set_isize(sc, XFS_FSB_TO_B(mp, rts->rsumblocks)); in xrep_rtsummary()
Drtbitmap.c182 if (mp->m_rbmip->i_disk_size < XFS_FSB_TO_B(mp, rtb->rbmblocks)) { in xchk_rtbitmap()
Dsymlink_repair.c133 byte_cnt = XFS_FSB_TO_B(sc->mp, mval[n].br_blockcount); in xrep_symlink_salvage_remote()
Ddir_repair.c570 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()
Dtempfile.c382 loff_t pos = XFS_FSB_TO_B(mp, off); in xrep_tempfile_copyin()

12