Home
last modified time | relevance | path

Searched refs:sb_blocksize (Results 1 – 25 of 29) sorted by relevance

12

/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_sb.c334 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 Dxfs_ag.c850 .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 Dxfs_symlink_remote.c30 int buflen = XFS_SYMLINK_BUF_SPACE(mp, mp->m_sb.sb_blocksize); in xfs_symlink_blocks()
H A Dxfs_trans_resv.c702 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 Dxfs_inode_buf.c725 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 Dxfs_format.h98 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 Dxfs_ialloc.c2803 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 Dxfs_attr_remote.c55 int buflen = XFS_ATTR3_RMT_BUF_SPACE(mp, mp->m_sb.sb_blocksize); in xfs_attr3_rmt_blocks()
/openbmc/linux/fs/qnx6/
H A Dsuper_mmi.c24 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 Dinode.c211 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 Dqnx6_fs.h104 __fs32 sb_blocksize; member
123 __fs32 sb_blocksize; member
/openbmc/u-boot/fs/reiserfs/
H A Dreiserfs.c281 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 Dreiserfs_private.h61 #define sb_blocksize(sbp) (__le16_to_cpu((sbp)->s_blocksize)) macro
/openbmc/linux/fs/reiserfs/
H A Dresize.c155 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 Dsuper.c1621 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 Dprints.c568 printk("Blocksize %d\n", sb_blocksize(rs)); in print_super_block()
/openbmc/linux/fs/xfs/scrub/
H A Drtsummary.c59 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 Dagheader.c125 if (sb->sb_blocksize != cpu_to_be32(mp->m_sb.sb_blocksize)) in xchk_superblock()
/openbmc/linux/fs/xfs/
H A Dxfs_rtalloc.c881 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 Dxfs_itable.c148 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 Dxfs_discard.c403 range.len < mp->m_sb.sb_blocksize) in xfs_ioc_trim()
H A Dxfs_bmap_util.c744 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 Dxfs_mount.c302 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 Dxfs_super.c855 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 Dxfs_iops.c1200 if (mp->m_sb.sb_blocksize != PAGE_SIZE) in xfs_inode_supports_dax()

12