[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <583B7F9D.3050208@huawei.com>
Date: Mon, 28 Nov 2016 08:51:41 +0800
From: wangyijing <wangyijing@...wei.com>
To: Coly Li <i@...y.li>, <axboe@...com>, <kent.overstreet@...il.com>
CC: <git@...ux.ewheeler.net>, <colyli@...e.de>,
<linux-bcache@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/2] bcache: Remove redundant set_capacity
在 2016/11/27 15:57, Coly Li 写道:
> On 2016/11/25 上午9:39, Yijing Wang wrote:
>> set_capacity() has been called in bcache_device_init(),
>> remove the redundant one.
>>
>> Signed-off-by: Yijing Wang <wangyijing@...wei.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);
>>
>
> Hi Yijing,
>
> Nice catch, it looks good to me.
>
> Acked-by: Coly Li <colyli@...e.de>
Thanks!
>
Powered by blists - more mailing lists