[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1467595421-20900-1-git-send-email-wangyijing@huawei.com>
Date: Mon, 4 Jul 2016 09:23:41 +0800
From: Yijing Wang <wangyijing@...wei.com>
To: <axboe@...com>, Kent Overstreet <kent.overstreet@...il.com>
CC: Eric Wheeler <git@...ux.ewheeler.net>, Coly Li <colyli@...e.de>,
<linux-bcache@...r.kernel.org>, <linux-raid@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, Yijing Wang <wangyijing@...wei.com>
Subject: [PATCH v3 3/3] 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@...e.de>
Signed-off-by: Yijing Wang <wangyijing@...wei.com>
Acked-by: Eric Wheeler <bcache@...ts.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
Powered by blists - more mailing lists