Lines Matching refs:block_size
116 sb->block_size = le16_to_cpu(s->block_size); in read_super()
119 if (sb->block_size << 9 < bdev_logical_block_size(bdev)) in read_super()
137 sb->block_size = le16_to_cpu(s->block_size); in read_super()
152 if (!is_power_of_2(sb->block_size) || in read_super()
153 sb->block_size > PAGE_SECTORS || in read_super()
747 static int bcache_device_init(struct bcache_device *d, unsigned block_size, in bcache_device_init() argument
812 q->limits.io_min = block_size; in bcache_device_init()
813 q->limits.logical_block_size = block_size; in bcache_device_init()
814 q->limits.physical_block_size = block_size; in bcache_device_init()
954 if (dc->sb.block_size < c->sb.block_size) { in bch_cached_dev_attach()
1092 static int cached_dev_init(struct cached_dev *dc, unsigned block_size) in cached_dev_init() argument
1122 ret = bcache_device_init(&dc->disk, block_size, in cached_dev_init()
1159 if (cached_dev_init(dc, sb->block_size << 9)) in register_bdev()
1475 c->sb.block_size = sb->block_size; in bch_cache_set_alloc()
1480 c->block_bits = ilog2(sb->block_size); in bch_cache_set_alloc()
1511 iter_size = (sb->bucket_size / sb->block_size + 1) * in bch_cache_set_alloc()
1706 return ca->sb.block_size == c->sb.block_size && in can_attach_cache()