Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1529767
| From | Yijing Wang <wangyijing@huawei.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/2] bcache: Remove redundant set_capacity |
| Date | 2016-11-25 02:40 +0100 |
| Message-ID | <sHdEC-2n2-11@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
set_capacity() has been called in bcache_device_init(), remove the redundant one. Signed-off-by: Yijing Wang <wangyijing@huawei.com> --- drivers/md/bcache/super.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index 849ad44..b638a16 100644 --- a/drivers/md/bcache/super.c +++ b/drivers/md/bcache/super.c @@ -1126,9 +1126,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); -- 2.5.0
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 1/2] bcache: Remove redundant set_capacity Yijing Wang <wangyijing@huawei.com> - 2016-11-25 02:40 +0100
Re: [PATCH 1/2] bcache: Remove redundant set_capacity Coly Li <i@coly.li> - 2016-11-27 09:00 +0100
Re: [PATCH 1/2] bcache: Remove redundant set_capacity wangyijing <wangyijing@huawei.com> - 2016-11-28 02:00 +0100
Re: [PATCH 1/2] bcache: Remove redundant set_capacity Eric Wheeler <bcache@lists.ewheeler.net> - 2016-11-29 21:50 +0100
Re: [PATCH 1/2] bcache: Remove redundant set_capacity wangyijing <wangyijing@huawei.com> - 2016-11-30 03:10 +0100
Re: [PATCH 1/2] bcache: Remove redundant set_capacity Eric Wheeler <bcache@lists.ewheeler.net> - 2016-11-30 19:40 +0100
Re: [PATCH 1/2] bcache: Remove redundant set_capacity wangyijing <wangyijing@huawei.com> - 2016-12-01 10:30 +0100
Re: [PATCH 1/2] bcache: Remove redundant set_capacity Eric Wheeler <bcache@lists.ewheeler.net> - 2016-12-01 23:10 +0100
Re: [PATCH 1/2] bcache: Remove redundant set_capacity wangyijing <wangyijing@huawei.com> - 2016-12-02 02:00 +0100
csiph-web