/openbmc/linux/fs/xfs/libxfs/ |
H A D | xfs_sb.c | 334 if (sbp->sb_blocksize < XFS_MIN_CRC_BLOCKSIZE) { in xfs_validate_sb_common() 337 sbp->sb_blocksize, XFS_MIN_CRC_BLOCKSIZE); in xfs_validate_sb_common() 406 sbp->sb_blocksize < XFS_MIN_BLOCKSIZE || in xfs_validate_sb_common() 407 sbp->sb_blocksize > XFS_MAX_BLOCKSIZE || in xfs_validate_sb_common() 475 if (sbp->sb_logsunit % sbp->sb_blocksize) { in xfs_validate_sb_common() 510 NBBY * sbp->sb_blocksize); in xfs_validate_sb_common() 614 to->sb_blocksize = be32_to_cpu(from->sb_blocksize); in __xfs_sb_from_disk() 763 to->sb_blocksize = cpu_to_be32(from->sb_blocksize); in xfs_sb_to_disk() 978 mp->m_blockmask = sbp->sb_blocksize - 1; in xfs_sb_mount_common() 1193 geo->blocksize = sbp->sb_blocksize; in xfs_fs_geometry() [all …]
|
H A D | xfs_ag.c | 850 .numblks = BTOBB(mp->m_sb.sb_blocksize), in xfs_ag_init_headers() 857 .numblks = BTOBB(mp->m_sb.sb_blocksize), in xfs_ag_init_headers() 864 .numblks = BTOBB(mp->m_sb.sb_blocksize), in xfs_ag_init_headers() 872 .numblks = BTOBB(mp->m_sb.sb_blocksize), in xfs_ag_init_headers() 880 .numblks = BTOBB(mp->m_sb.sb_blocksize), in xfs_ag_init_headers() 887 .numblks = BTOBB(mp->m_sb.sb_blocksize), in xfs_ag_init_headers()
|
H A D | xfs_symlink_remote.c | 30 int buflen = XFS_SYMLINK_BUF_SPACE(mp, mp->m_sb.sb_blocksize); in xfs_symlink_blocks()
|
H A D | xfs_trans_resv.c | 702 return xfs_calc_buf_res(1, mp->m_sb.sb_blocksize); in xfs_calc_growrtzero_reservation() 721 xfs_calc_buf_res(1, mp->m_sb.sb_blocksize) + in xfs_calc_growrtfree_reservation()
|
H A D | xfs_inode_buf.c | 725 blocksize_bytes = mp->m_sb.sb_blocksize; in xfs_inode_validate_extsize() 800 if (cowextsize_bytes % mp->m_sb.sb_blocksize) in xfs_inode_validate_cowextsize()
|
H A D | xfs_format.h | 98 uint32_t sb_blocksize; /* logical block size, bytes */ member 189 __be32 sb_blocksize; /* logical block size, bytes */ member 1143 #define XFS_BLOCKSIZE(mp) ((mp)->m_sb.sb_blocksize)
|
H A D | xfs_ialloc.c | 2803 igeo->inobt_mxr[0] = xfs_inobt_maxrecs(mp, sbp->sb_blocksize, 1); in xfs_ialloc_setup_geometry() 2804 igeo->inobt_mxr[1] = xfs_inobt_maxrecs(mp, sbp->sb_blocksize, 0); in xfs_ialloc_setup_geometry() 2863 if (igeo->inode_cluster_size_raw > mp->m_sb.sb_blocksize) in xfs_ialloc_setup_geometry() 2908 first_bno = howmany(4 * mp->m_sb.sb_sectsize, mp->m_sb.sb_blocksize); in xfs_ialloc_calc_rootino()
|
H A D | xfs_attr_remote.c | 55 int buflen = XFS_ATTR3_RMT_BUF_SPACE(mp, mp->m_sb.sb_blocksize); in xfs_attr3_rmt_blocks()
|
/openbmc/linux/fs/qnx6/ |
H A D | super_mmi.c | 24 qsb->sb_blocksize = sb->sb_blocksize; in qnx6_mmi_copy_sb() 69 fs32_to_cpu(sbi, sb1->sb_blocksize); in qnx6_mmi_fill_super() 72 if (!sb_set_blocksize(s, fs32_to_cpu(sbi, sb1->sb_blocksize))) { in qnx6_mmi_fill_super()
|
H A D | inode.c | 211 pr_debug("blocksize: %08x\n", fs32_to_cpu(sbi, sb->sb_blocksize)); in qnx6_superblock_debug() 361 if (!sb_set_blocksize(s, fs32_to_cpu(sbi, sb1->sb_blocksize))) { in qnx6_fill_super()
|
/openbmc/linux/include/linux/ |
H A D | qnx6_fs.h | 104 __fs32 sb_blocksize; member 123 __fs32 sb_blocksize; member
|
/openbmc/u-boot/fs/reiserfs/ |
H A D | reiserfs.c | 281 sb_journal_block(&super) * sb_blocksize(&super) in reiserfs_mount() 310 INFO->blocksize = sb_blocksize(&super); in reiserfs_mount() 311 INFO->fullblocksize_shift = log2 (sb_blocksize(&super)); in reiserfs_mount() 324 if (sb_blocksize(&super) < FSYSREISER_MIN_BLOCKSIZE in reiserfs_mount() 325 || sb_blocksize(&super) > FSYSREISER_MAX_BLOCKSIZE in reiserfs_mount() 326 || (SECTOR_SIZE << INFO->blocksize_shift) != sb_blocksize(&super)) in reiserfs_mount()
|
H A D | reiserfs_private.h | 61 #define sb_blocksize(sbp) (__le16_to_cpu((sbp)->s_blocksize)) macro
|
/openbmc/linux/fs/reiserfs/ |
H A D | resize.c | 155 memset(bh->b_data, 0, sb_blocksize(sb)); in reiserfs_resize() 165 bitmap[i].free_count = sb_blocksize(sb) * 8 - 1; in reiserfs_resize()
|
H A D | super.c | 1621 fs_blocksize = sb_blocksize(rs); in read_super_block() 1635 if (sb_blocksize(rs) != s->s_blocksize) { in read_super_block() 1981 if (bdev_nr_bytes(s->s_bdev) < sb_block_count(rs) * sb_blocksize(rs)) { in reiserfs_fill_super()
|
H A D | prints.c | 568 printk("Blocksize %d\n", sb_blocksize(rs)); in print_super_block()
|
/openbmc/linux/fs/xfs/scrub/ |
H A D | rtsummary.c | 59 sc->buf = kvmalloc(mp->m_sb.sb_blocksize, XCHK_GFP_FLAGS); in xchk_setup_rtsummary() 168 if (roundup_64(rtbmp_bytes, mp->m_sb.sb_blocksize) != in xchk_rtsum_compute()
|
H A D | agheader.c | 125 if (sb->sb_blocksize != cpu_to_be32(mp->m_sb.sb_blocksize)) in xchk_superblock()
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_rtalloc.c | 881 memset(bp->b_addr, 0, mp->m_sb.sb_blocksize); in xfs_growfs_rt_alloc() 882 xfs_trans_log_buf(tp, bp, 0, mp->m_sb.sb_blocksize - 1); in xfs_growfs_rt_alloc() 1001 nrbmblocks = howmany_64(nrextents, NBBY * sbp->sb_blocksize); in xfs_growfs_rt() 1058 nrblocks_step = (bmbno + 1) * NBBY * nsbp->sb_blocksize * in xfs_growfs_rt() 1092 nsbp->sb_rbmblocks * nsbp->sb_blocksize; in xfs_growfs_rt() 1294 mp->m_rsumsize = roundup(mp->m_rsumsize, sbp->sb_blocksize); in xfs_rtmount_init()
|
H A D | xfs_itable.c | 148 buf->bs_blksize = mp->m_sb.sb_blocksize; in xfs_bulkstat_one_int() 154 buf->bs_blksize = mp->m_sb.sb_blocksize; in xfs_bulkstat_one_int()
|
H A D | xfs_discard.c | 403 range.len < mp->m_sb.sb_blocksize) in xfs_ioc_trim()
|
H A D | xfs_bmap_util.c | 744 round_up(XFS_ISIZE(ip), mp->m_sb.sb_blocksize), in xfs_free_eofblocks() 971 rounding = max_t(xfs_off_t, mp->m_sb.sb_blocksize, PAGE_SIZE); in xfs_flush_unmap_range() 1078 offset = round_down(offset, mp->m_sb.sb_blocksize); in xfs_prepare_shift() 1080 offset -= mp->m_sb.sb_blocksize; in xfs_prepare_shift()
|
H A D | xfs_mount.c | 302 mp->m_sb.sb_blocksize); in xfs_validate_new_dalign() 320 mp->m_dalign, mp->m_sb.sb_blocksize); in xfs_validate_new_dalign()
|
H A D | xfs_super.c | 855 statp->f_bsize = sbp->sb_blocksize; in xfs_fs_statfs() 1638 if (mp->m_sb.sb_blocksize > PAGE_SIZE) { in xfs_fs_fill_super() 1642 mp->m_sb.sb_blocksize, PAGE_SIZE); in xfs_fs_fill_super() 1685 sb->s_blocksize = mp->m_sb.sb_blocksize; in xfs_fs_fill_super()
|
H A D | xfs_iops.c | 1200 if (mp->m_sb.sb_blocksize != PAGE_SIZE) in xfs_inode_supports_dax()
|