Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1435224 > unrolled thread

[PATCH v2 3/3] bcache: Remove redundant block_size assignment

Started byYijing Wang <wangyijing@huawei.com>
First post2016-07-01 12:00 +0200
Last post2016-07-01 12:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH v2 3/3] bcache: Remove redundant block_size assignment Yijing Wang <wangyijing@huawei.com> - 2016-07-01 12:00 +0200

#1435224 — [PATCH v2 3/3] bcache: Remove redundant block_size assignment

FromYijing Wang <wangyijing@huawei.com>
Date2016-07-01 12:00 +0200
Subject[PATCH v2 3/3] bcache: Remove redundant block_size assignment
Message-ID<rQ3oW-528-11@gated-at.bofh.it>
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>
---
 drivers/md/bcache/super.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
index aecaace..bf4b100 100644
--- 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);
-- 
1.7.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web