diff options
author | Yijing Wang <wangyijing@huawei.com> | 2017-10-14 01:35:32 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-10-16 17:07:26 +0200 |
commit | e89d67596e202119ea846cc997f4cf75cb284490 (patch) | |
tree | 7dae141c953a2483e5161ff20e35cf4f9f76e049 | |
parent | bcache: rewrite multiple partitions support (diff) | |
download | linux-e89d67596e202119ea846cc997f4cf75cb284490.tar.xz linux-e89d67596e202119ea846cc997f4cf75cb284490.zip |
bcache: Remove redundant set_capacity
set_capacity() has been called in bcache_device_init(),
remove the redundant one.
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Reviewed-by: Eric Wheeler <bcache@linux.ewheeler.net>
Acked-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | drivers/md/bcache/super.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index a478d1ac0480..72c3b2929ef0 100644 --- a/drivers/md/bcache/super.c +++ b/drivers/md/bcache/super.c @@ -1142,9 +1142,6 @@ static int cached_dev_init(struct cached_dev *dc, unsigned block_size) if (ret) return ret; - set_capacity(dc->disk.disk, - dc->bdev->bd_part->nr_sects - dc->sb.data_offset); - dc->disk.disk->queue->backing_dev_info->ra_pages = max(dc->disk.disk->queue->backing_dev_info->ra_pages, q->backing_dev_info->ra_pages); |