Messages in this thread | | | Date | Wed, 25 Apr 2012 09:28:53 +0900 | From | KAMEZAWA Hiroyuki <> | Subject | Re: [PATCH 1/2] res_counter: Merge res_counter_charge and res_counter_charge_nofail |
| |
(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@gmail.com> > Cc: Tejun Heo <tj@kernel.org> > Cc: Li Zefan <lizefan@huawei.com> > Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> > Cc: Glauber Costa <glommer@parallels.com> > Cc: Kirill A. Shutemov <kirill@shutemov.name>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
| |