mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
bcache: Remove redundant block_size assignment
We have assigned sb->block_size before the switch, so remove the redundant one. Reviewed-by: Coly Li <colyli@suse.de> Signed-off-by: Yijing Wang <wangyijing@huawei.com> Acked-by: Eric Wheeler <bcache@lists.ewheeler.net> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
parent
7abc70d700
commit
89b920e003
1 changed files with 0 additions and 1 deletions
|
@ -134,7 +134,6 @@ static const char *read_super(struct cache_sb *sb, struct block_device *bdev,
|
|||
case BCACHE_SB_VERSION_CDEV:
|
||||
case BCACHE_SB_VERSION_CDEV_WITH_UUID:
|
||||
sb->nbuckets = le64_to_cpu(s->nbuckets);
|
||||
sb->block_size = le16_to_cpu(s->block_size);
|
||||
sb->bucket_size = le16_to_cpu(s->bucket_size);
|
||||
|
||||
sb->nr_in_set = le16_to_cpu(s->nr_in_set);
|
||||
|
|
Loading…
Reference in a new issue