[patch 0/2] memcg: clean up limit checking

From: Johannes Weiner
Date: Thu Feb 03 2011 - 07:54:15 EST


On Mon, Jan 31, 2011 at 04:24:48PM -0800, Andrew Morton wrote:
> On Tue, 1 Feb 2011 01:04:55 +0100
> Johannes Weiner <hannes@xxxxxxxxxxx> wrote:
>
> > Maybe it would be better to use res_counter_margin(cnt) >= wanted
> > throughout the code.
>
> yup.

Okay, I cleaned it all up a bit for .39. While doing so, I also found
that we are reclaiming one page too much when pushing back on behalf
of soft limits.

So 1/2 fixes the soft limit reclaim off-by-one-page, and 2/2 reduces
all the limit checks to two functions.
--
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/