diff mbox series

[RESEND] block, bfq: remove unused variable for bfq_queue

Message ID 20221017032019.101-1-Yuwei.Guan@zeekrlife.com (mailing list archive)
State New, archived
Headers show
Series [RESEND] block, bfq: remove unused variable for bfq_queue | expand

Commit Message

Yuwei Guan Oct. 17, 2022, 3:20 a.m. UTC
it defined in d0edc2473be9d, but there's nowhere to use it,
so remove it.

Signed-off-by: Yuwei Guan <Yuwei.Guan@zeekrlife.com>
Acked-by: Paolo Valente <paolo.valente@linaro.org>
---
 block/bfq-iosched.h | 3 ---
 1 file changed, 3 deletions(-)

Comments

Yu Kuai Oct. 17, 2022, 3:38 a.m. UTC | #1
Hi,

在 2022/10/17 11:20, Yuwei Guan 写道:
> it defined in d0edc2473be9d, but there's nowhere to use it,
> so remove it.
> 
> Signed-off-by: Yuwei Guan <Yuwei.Guan@zeekrlife.com>
> Acked-by: Paolo Valente <paolo.valente@linaro.org>
> ---
>   block/bfq-iosched.h | 3 ---
>   1 file changed, 3 deletions(-)
> 
> diff --git a/block/bfq-iosched.h b/block/bfq-iosched.h
> index 64ee618064ba..6bcef8e5871a 100644
> --- a/block/bfq-iosched.h
> +++ b/block/bfq-iosched.h
> @@ -369,11 +369,8 @@ struct bfq_queue {
>   	unsigned long split_time; /* time of last split */
>   
>   	unsigned long first_IO_time; /* time of first I/O for this queue */
> -
>   	unsigned long creation_time; /* when this queue is created */
>   
> -	/* max service rate measured so far */
> -	u32 max_service_rate;
>   

You left two blank lines here. Have you tried checkpatch?

Thanks,
Kuai
>   	/*
>   	 * Pointer to the waker queue for this queue, i.e., to the
>
Yuwei Guan Oct. 17, 2022, 5:22 a.m. UTC | #2
On 2022/10/17 11:38, Yu Kuai wrote:
> Hi,
>
> 在 2022/10/17 11:20, Yuwei Guan 写道:
>> it defined in d0edc2473be9d, but there's nowhere to use it,
>> so remove it.
>>
>> Signed-off-by: Yuwei Guan <Yuwei.Guan@zeekrlife.com>
>> Acked-by: Paolo Valente <paolo.valente@linaro.org>
>> ---
>>   block/bfq-iosched.h | 3 ---
>>   1 file changed, 3 deletions(-)
>>
>> diff --git a/block/bfq-iosched.h b/block/bfq-iosched.h
>> index 64ee618064ba..6bcef8e5871a 100644
>> --- a/block/bfq-iosched.h
>> +++ b/block/bfq-iosched.h
>> @@ -369,11 +369,8 @@ struct bfq_queue {
>>       unsigned long split_time; /* time of last split */
>>         unsigned long first_IO_time; /* time of first I/O for this 
>> queue */
>> -
>>       unsigned long creation_time; /* when this queue is created */
>>   -    /* max service rate measured so far */
>> -    u32 max_service_rate;
>
> You left two blank lines here. Have you tried checkpatch?
>
> Thanks,
> Kuai

Hi Kuai,

I checked it with checkpatch.pl, but 0 errors, 0 warnings.

I will delete one blank line, then resend it.

>>       /*
>>        * Pointer to the waker queue for this queue, i.e., to the
>>
>
diff mbox series

Patch

diff --git a/block/bfq-iosched.h b/block/bfq-iosched.h
index 64ee618064ba..6bcef8e5871a 100644
--- a/block/bfq-iosched.h
+++ b/block/bfq-iosched.h
@@ -369,11 +369,8 @@  struct bfq_queue {
 	unsigned long split_time; /* time of last split */
 
 	unsigned long first_IO_time; /* time of first I/O for this queue */
-
 	unsigned long creation_time; /* when this queue is created */
 
-	/* max service rate measured so far */
-	u32 max_service_rate;
 
 	/*
 	 * Pointer to the waker queue for this queue, i.e., to the