Lines Matching refs:blocksize
209 struct nilfs_super_block *sbp, int *blocksize) in nilfs_get_blocksize() argument
219 *blocksize = BLOCK_SIZE << shift_bits; in nilfs_get_blocksize()
255 int blocksize; in load_nilfs() local
276 err = nilfs_get_blocksize(sb, sbp[0], &blocksize); in load_nilfs()
280 if (blocksize != nilfs->ns_blocksize) { in load_nilfs()
283 blocksize, nilfs->ns_blocksize); in load_nilfs()
589 struct super_block *sb, int blocksize, in nilfs_load_super_block() argument
603 sbp[0] = nilfs_read_super_block(sb, NILFS_SB_OFFSET_BYTES, blocksize, in nilfs_load_super_block()
605 sbp[1] = nilfs_read_super_block(sb, sb2off, blocksize, &sbh[1]); in nilfs_load_super_block()
614 blocksize); in nilfs_load_super_block()
618 blocksize); in nilfs_load_super_block()
647 blocksize); in nilfs_load_super_block()
674 int blocksize; in init_nilfs() local
679 blocksize = sb_min_blocksize(sb, NILFS_MIN_BLOCK_SIZE); in init_nilfs()
680 if (!blocksize) { in init_nilfs()
685 err = nilfs_load_super_block(nilfs, sb, blocksize, &sbp); in init_nilfs()
697 err = nilfs_get_blocksize(sb, sbp, &blocksize); in init_nilfs()
701 if (blocksize < NILFS_MIN_BLOCK_SIZE) { in init_nilfs()
704 blocksize); in init_nilfs()
708 if (sb->s_blocksize != blocksize) { in init_nilfs()
711 if (blocksize < hw_blocksize) { in init_nilfs()
714 blocksize, hw_blocksize); in init_nilfs()
719 if (!sb_set_blocksize(sb, blocksize)) { in init_nilfs()
720 nilfs_err(sb, "bad blocksize %d", blocksize); in init_nilfs()
725 err = nilfs_load_super_block(nilfs, sb, blocksize, &sbp); in init_nilfs()
734 nilfs->ns_blocksize = blocksize; in init_nilfs()