Re: [PATCH 5/8] cgroups: Ability to stop res charge propagation on bounded ancestor

Frederic Weisbecker
2011-08-27T13:59:39Z

On Wed, Aug 17, 2011 at 10:41:57AM +0800, Li Zefan wrote:
> > +int res_counter_charge(struct res_counter *counter, unsigned long val,
> > + struct res_counter **limit_fail_at)
> > +{
> > + return res_counter_charge_until(counter, NULL, val, limit_fail_at);
> > +}
> > +
>
> static inline in res_counter.h ?
>
> ...
> > +void res_counter_uncharge(struct res_counter *counter, unsigned long val)
> > +{
> > + res_counter_uncharge_until(counter, NULL, val);
> > +}
> >
>
> ditto.

Right, sounds better inlined.