6,534
edits
Changes
m
→Current accounting model: wording
}
</pre>
The <code>charge_beancounter()</code> call is responsible for checking whether the user is allowed to consume desired get the requested amount of the resource, i.e. if the resource consumption level is lower than the limit set.
Obviously, this change slows down the original code, as charge_beancounter() takes some slow operations like taking locks. We have an idea of how to optimize this behavior.