diff options
author | David Rientjes <rientjes@google.com> | 2014-04-07 18:37:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-07 19:35:54 -0400 |
commit | 539a13b47e462d28c48f076c63871580f694a366 (patch) | |
tree | b0db5d5314b1276d433c3ae826d3a19a8902bec6 /Documentation/cgroups | |
parent | f0432d159601f96839f514f286eaa5b75c4112dc (diff) |
res_counter: remove interface for locked charging and uncharging
The res_counter_{charge,uncharge}_locked() variants are not used in the
kernel outside of the resource counter code itself, so remove the
interface.
Signed-off-by: David Rientjes <rientjes@google.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Jianguo Wu <wujianguo@huawei.com>
Cc: Tim Hockin <thockin@google.com>
Cc: Christoph Lameter <cl@linux.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/cgroups')
-rw-r--r-- | Documentation/cgroups/resource_counter.txt | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/Documentation/cgroups/resource_counter.txt b/Documentation/cgroups/resource_counter.txt index 5108afb3645c..762ca54eb929 100644 --- a/Documentation/cgroups/resource_counter.txt +++ b/Documentation/cgroups/resource_counter.txt | |||
@@ -76,15 +76,7 @@ to work with it. | |||
76 | limit_fail_at parameter is set to the particular res_counter element | 76 | limit_fail_at parameter is set to the particular res_counter element |
77 | where the charging failed. | 77 | where the charging failed. |
78 | 78 | ||
79 | d. int res_counter_charge_locked | 79 | d. u64 res_counter_uncharge(struct res_counter *rc, unsigned long val) |
80 | (struct res_counter *rc, unsigned long val, bool force) | ||
81 | |||
82 | The same as res_counter_charge(), but it must not acquire/release the | ||
83 | res_counter->lock internally (it must be called with res_counter->lock | ||
84 | held). The force parameter indicates whether we can bypass the limit. | ||
85 | |||
86 | e. u64 res_counter_uncharge[_locked] | ||
87 | (struct res_counter *rc, unsigned long val) | ||
88 | 80 | ||
89 | When a resource is released (freed) it should be de-accounted | 81 | When a resource is released (freed) it should be de-accounted |
90 | from the resource counter it was accounted to. This is called | 82 | from the resource counter it was accounted to. This is called |
@@ -93,7 +85,7 @@ to work with it. | |||
93 | 85 | ||
94 | The _locked routines imply that the res_counter->lock is taken. | 86 | The _locked routines imply that the res_counter->lock is taken. |
95 | 87 | ||
96 | f. u64 res_counter_uncharge_until | 88 | e. u64 res_counter_uncharge_until |
97 | (struct res_counter *rc, struct res_counter *top, | 89 | (struct res_counter *rc, struct res_counter *top, |
98 | unsigned long val) | 90 | unsigned long val) |
99 | 91 | ||