Re: [PATCH 1/2] res_counter: Merge res_counter_charge and res_counter_charge_nofail

From: Glauber Costa
Date: Wed Apr 25 2012 - 10:42:12 EST


On 04/24/2012 09:28 PM, KAMEZAWA Hiroyuki wrote:
> (2012/04/25 8:11), Frederic Weisbecker wrote:
>
>> These two functions do almost the same thing and duplicate some code.
>> Merge their implementation into a single common function.
>> res_counter_charge_locked() takes one more parameter but it doesn't seem
>> to be used outside res_counter.c yet anyway.
>>
>> There is no (intended) change in the behaviour.
>>
>> Signed-off-by: Frederic Weisbecker<fweisbec@xxxxxxxxx>
>> Cc: Tejun Heo<tj@xxxxxxxxxx>
>> Cc: Li Zefan<lizefan@xxxxxxxxxx>
>> Cc: KAMEZAWA Hiroyuki<kamezawa.hiroyu@xxxxxxxxxxxxxx>
>> Cc: Glauber Costa<glommer@xxxxxxxxxxxxx>
>> Cc: Kirill A. Shutemov<kirill@xxxxxxxxxxxxx>
>
>
> Acked-by: KAMEZAWA Hiroyuki<kamezawa.hiroyu@xxxxxxxxxxxxxx>
>
Acked-by: Glauber Costa <glommer@xxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/