Lines Matching refs:block_size
139 sb->block_size = le16_to_cpu(s->block_size); in read_super()
142 if (sb->block_size << 9 < bdev_logical_block_size(bdev)) in read_super()
160 sb->block_size = le16_to_cpu(s->block_size); in read_super()
175 if (!is_power_of_2(sb->block_size) || in read_super()
176 sb->block_size > PAGE_SECTORS || in read_super()
777 static int bcache_device_init(struct bcache_device *d, unsigned block_size, in bcache_device_init() argument
843 q->limits.io_min = block_size; in bcache_device_init()
844 q->limits.logical_block_size = block_size; in bcache_device_init()
845 q->limits.physical_block_size = block_size; in bcache_device_init()
985 if (dc->sb.block_size < c->sb.block_size) { in bch_cached_dev_attach()
1123 static int cached_dev_init(struct cached_dev *dc, unsigned block_size) in cached_dev_init() argument
1153 ret = bcache_device_init(&dc->disk, block_size, in cached_dev_init()
1190 if (cached_dev_init(dc, sb->block_size << 9)) in register_bdev()
1506 c->sb.block_size = sb->block_size; in bch_cache_set_alloc()
1511 c->block_bits = ilog2(sb->block_size); in bch_cache_set_alloc()
1542 iter_size = (sb->bucket_size / sb->block_size + 1) * in bch_cache_set_alloc()
1737 return ca->sb.block_size == c->sb.block_size && in can_attach_cache()