projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7abc70d
)
bcache: Remove redundant block_size assignment
author
Yijing Wang
<
[email protected]
>
Mon, 4 Jul 2016 01:23:41 +0000
(09:23 +0800)
committer
Jens Axboe
<
[email protected]
>
Tue, 5 Jul 2016 17:34:50 +0000
(11:34 -0600)
We have assigned sb->block_size before the switch,
so remove the redundant one.
Reviewed-by: Coly Li <
[email protected]
>
Signed-off-by: Yijing Wang <
[email protected]
>
Acked-by: Eric Wheeler <
[email protected]
>
Signed-off-by: Jens Axboe <
[email protected]
>
drivers/md/bcache/super.c
patch
|
blob
|
history
diff --git
a/drivers/md/bcache/super.c
b/drivers/md/bcache/super.c
index c3138f6fc78394852238c689451b8ea1a2037c70..88ef6d14cce399b36a881807335a4b7b9fe4a66e 100644
(file)
--- a/
drivers/md/bcache/super.c
+++ b/
drivers/md/bcache/super.c
@@
-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);