/linux-4.4.14/fs/xfs/libxfs/ |
D | xfs_trans_resv.c | 138 res = xfs_calc_buf_res(mp->m_in_maxlevels, XFS_FSB_TO_B(mp, 1)); in xfs_calc_finobt_res() 141 XFS_FSB_TO_B(mp, 1)); in xfs_calc_finobt_res() 143 res += (uint)XFS_FSB_TO_B(mp, 1); in xfs_calc_finobt_res() 189 XFS_FSB_TO_B(mp, 1)) + in xfs_calc_write_reservation() 192 XFS_FSB_TO_B(mp, 1))), in xfs_calc_write_reservation() 195 XFS_FSB_TO_B(mp, 1)))); in xfs_calc_write_reservation() 218 XFS_FSB_TO_B(mp, 1))), in xfs_calc_itruncate_reservation() 221 XFS_FSB_TO_B(mp, 1)) + in xfs_calc_itruncate_reservation() 224 XFS_FSB_TO_B(mp, 1)) + in xfs_calc_itruncate_reservation() 248 XFS_FSB_TO_B(mp, 1))), in xfs_calc_rename_reservation() [all …]
|
D | xfs_trans_resv.h | 76 ((nx) * (2 * XFS_FSB_TO_B((mp), 2 * (mp)->m_ag_maxlevels - 1))) 88 (XFS_FSB_TO_B(mp, XFS_DAENTER_BLOCKS(mp, XFS_DATA_FORK)) + \ 89 (XFS_FSB_TO_B(mp, XFS_DAENTER_BMAPS(mp, XFS_DATA_FORK) + 1)))
|
D | xfs_dir2.c | 610 size = XFS_FSB_TO_B(mp, bno + count); in xfs_dir2_grow_inode() 632 rval = XFS_FSB_TO_B(args->dp->i_mount, last) == args->geo->blksize; in xfs_dir2_isblock() 728 dp->i_d.di_size = XFS_FSB_TO_B(mp, bno); in xfs_dir2_shrink_inode()
|
D | xfs_format.h | 579 #define XFS_FSB_TO_B(mp,fsbno) ((xfs_fsize_t)(fsbno) << (mp)->m_sb.sb_blocklog) macro
|
D | xfs_dir2_leaf.c | 1740 if (XFS_FSB_TO_B(mp, fo) > XFS_DIR2_LEAF_OFFSET + args->geo->blksize) in xfs_dir2_node_to_leaf()
|
D | xfs_bmap.c | 5299 rtexts = XFS_FSB_TO_B(mp, del.br_blockcount); in xfs_bunmapi()
|
/linux-4.4.14/fs/xfs/ |
D | xfs_discard.c | 181 if (range.start >= XFS_FSB_TO_B(mp, mp->m_sb.sb_dblocks) || in xfs_ioc_trim() 182 range.minlen > XFS_FSB_TO_B(mp, XFS_ALLOC_AG_MAX_USABLE(mp)) || in xfs_ioc_trim() 206 range.len = XFS_FSB_TO_B(mp, blocks_trimmed); in xfs_ioc_trim()
|
D | xfs_qm_syscalls.c | 665 XFS_FSB_TO_B(mp, be64_to_cpu(dqp->q_core.d_blk_hardlimit)); in xfs_qm_scall_getquota() 667 XFS_FSB_TO_B(mp, be64_to_cpu(dqp->q_core.d_blk_softlimit)); in xfs_qm_scall_getquota() 670 dst->d_space = XFS_FSB_TO_B(mp, dqp->q_res_bcount); in xfs_qm_scall_getquota() 677 XFS_FSB_TO_B(mp, be64_to_cpu(dqp->q_core.d_rtb_hardlimit)); in xfs_qm_scall_getquota() 679 XFS_FSB_TO_B(mp, be64_to_cpu(dqp->q_core.d_rtb_softlimit)); in xfs_qm_scall_getquota() 680 dst->d_rt_space = XFS_FSB_TO_B(mp, dqp->q_res_rtbcount); in xfs_qm_scall_getquota()
|
D | xfs_iomap.c | 69 if (align && XFS_ISIZE(ip) < XFS_FSB_TO_B(mp, align)) in xfs_iomap_eof_align_last_fsb() 314 XFS_ISIZE(ip) < XFS_FSB_TO_B(mp, mp->m_writeio_blocks)) in xfs_iomap_eof_want_preallocate() 379 if (XFS_ISIZE(ip) < XFS_FSB_TO_B(mp, mp->m_dalign)) in xfs_iomap_eof_prealloc_initial_size() 711 XFS_STATS_ADD(mp, xs_xstrat_bytes, XFS_FSB_TO_B(mp, count_fsb)); in xfs_iomap_write_allocate() 917 i_size = XFS_FSB_TO_B(mp, offset_fsb + count_fsb); in xfs_iomap_write_unwritten()
|
D | xfs_pnfs.c | 104 iomap->offset = XFS_FSB_TO_B(mp, imap->br_startoff); in xfs_bmbt_to_iomap() 105 iomap->length = XFS_FSB_TO_B(mp, imap->br_blockcount); in xfs_bmbt_to_iomap()
|
D | xfs_bmap_util.c | 75 ssize_t size = XFS_FSB_TO_B(mp, count_fsb); in xfs_zero_extent() 1164 lastoffset = XFS_FSB_TO_B(mp, imap.br_startoff + in xfs_zero_remaining_bytes() 1169 lastoffset = XFS_FSB_TO_B(mp, imap.br_startoff + 1) - 1; in xfs_zero_remaining_bytes() 1192 (offset - XFS_FSB_TO_B(mp, imap.br_startoff)), in xfs_zero_remaining_bytes() 1298 if (offset < XFS_FSB_TO_B(mp, startoffset_fsb)) in xfs_free_file_space() 1300 XFS_FSB_TO_B(mp, startoffset_fsb) - 1); in xfs_free_file_space() 1302 XFS_FSB_TO_B(mp, endoffset_fsb) < offset + len) in xfs_free_file_space() 1304 XFS_FSB_TO_B(mp, endoffset_fsb), in xfs_free_file_space()
|
D | xfs_file.c | 554 zero_off = XFS_FSB_TO_B(mp, start_zero_fsb); in xfs_zero_eof() 555 zero_len = XFS_FSB_TO_B(mp, imap.br_blockcount); in xfs_zero_eof() 1204 endoff = XFS_FSB_TO_B(mp, map->br_startoff + map->br_blockcount); in xfs_find_get_desired_pgoff() 1385 XFS_FSB_TO_B(mp, map[i].br_startoff)); in xfs_seek_hole_data() 1440 start = XFS_FSB_TO_B(mp, fsbno); in xfs_seek_hole_data()
|
D | xfs_symlink.c | 71 byte_cnt = XFS_FSB_TO_B(mp, mval[n].br_blockcount); in xfs_readlink_bmap() 342 byte_cnt = XFS_FSB_TO_B(mp, mval[n].br_blockcount); in xfs_symlink()
|
D | xfs_rtalloc.c | 935 nrsumsize = XFS_FSB_TO_B(mp, nrsumblocks); in xfs_growfs_rt() 994 nmp->m_rsumsize = nrsumsize = XFS_FSB_TO_B(mp, nrsumblocks); in xfs_growfs_rt()
|
D | xfs_log.c | 658 } else if (XFS_FSB_TO_B(mp, mp->m_sb.sb_logblocks) > XFS_MAX_LOG_BYTES) { in xfs_log_mount() 661 XFS_FSB_TO_B(mp, mp->m_sb.sb_logblocks), in xfs_log_mount()
|
D | xfs_qm.c | 826 j = XFS_FSB_TO_B(mp, XFS_DQUOT_CLUSTER_SIZE_FSB); in xfs_qm_reset_dqcounts()
|
D | xfs_aops.c | 607 xfs_off_t iomap_offset = XFS_FSB_TO_B(m, imap->br_startoff); in xfs_map_buffer()
|