lkml.org 
[lkml]   [2011]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 5/8] cgroups: Ability to stop res charge propagation on bounded ancestor
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.


\
 
 \ /
  Last update: 2011-08-27 16:01    [W:0.078 / U:1.616 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site