Lines Matching refs:blocksize
2564 int blocksize;
2599 blocksize = sb_min_blocksize(sb, EXT4_MIN_BLOCK_SIZE);
2600 if (!blocksize) {
2601 ext4_msg(sb, KERN_ERR, "unable to set blocksize");
2609 if (blocksize != EXT4_MIN_BLOCK_SIZE) {
2611 offset = do_div(logical_sb_block, blocksize);
2714 blocksize = BLOCK_SIZE << le32_to_cpu(es->s_log_block_size);
2716 if (blocksize < EXT4_MIN_BLOCK_SIZE ||
2717 blocksize > EXT4_MAX_BLOCK_SIZE) {
2719 "Unsupported filesystem blocksize %d", blocksize);
2723 if (sb->s_blocksize != blocksize) {
2724 /* Validate the filesystem blocksize */
2725 if (!sb_set_blocksize(sb, blocksize)) {
2727 blocksize);
2733 offset = do_div(logical_sb_block, blocksize);
2763 (sbi->s_inode_size > blocksize)) {
2791 sbi->s_inodes_per_block = blocksize / EXT4_INODE_SIZE(sb);
2796 sbi->s_desc_per_block = blocksize / EXT4_DESC_SIZE(sb);
2818 if (sbi->s_blocks_per_group > blocksize * 8) {
2824 if (sbi->s_inodes_per_group > blocksize * 8) {
3298 int hblock, blocksize;
3317 blocksize = sb->s_blocksize;
3319 if (blocksize < hblock) {
3321 "blocksize too small for journal device");
3325 sb_block = EXT4_MIN_BLOCK_SIZE / blocksize;
3326 offset = EXT4_MIN_BLOCK_SIZE % blocksize;
3327 set_blocksize(bdev, blocksize);
3328 if (!(bh = __bread(bdev, sb_block, blocksize))) {
3355 start, len, blocksize);