diff options
author | Frederic Weisbecker <[email protected]> | 2012-04-25 01:11:35 +0200 |
---|---|---|
committer | Tejun Heo <[email protected]> | 2012-04-27 14:36:45 -0700 |
commit | 4d8438f044d8aaac6fbba98316ba484dabea397d (patch) | |
tree | 90c63abf93502bfecff1f098732c2f0a0d13c024 /lib/mpi/mpi-add.c | |
parent | c4c27fbdda4e8ba87806c415b6d15266b07bce4b (diff) |
res_counter: Merge res_counter_charge and res_counter_charge_nofail
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 <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
Acked-by: KAMEZAWA Hiroyuki <[email protected]>
Acked-by: Glauber Costa <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]>
Cc: Li Zefan <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions