2015-05-20 10:32, Olivier MATZ: > On 05/18/2015 05:35 PM, Zoltan Kiss wrote: > > Otherwise cache_flushthresh can be bigger than n, and > > a consumer can starve others by keeping every element > > either in use or in the cache. > > > > Signed-off-by: Zoltan Kiss <zoltan.kiss at linaro.org> > > Acked-by: Olivier Matz <olivier.matz at 6wind.com>
Applied, thanks > > +#define CALC_CACHE_FLUSHTHRESH(c) \ > > + ((typeof (c))((c) * CACHE_FLUSHTHRESH_MULTIPLIER)) I fixed spacing here: + ((typeof(c))((c) * CACHE_FLUSHTHRESH_MULTIPLIER))