aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/cgroups/resource_counter.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/cgroups/resource_counter.txt')
-rw-r--r--Documentation/cgroups/resource_counter.txt12
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