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

From: Frederic Weisbecker
Date: Sat Aug 27 2011 - 09:59:40 EST


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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/