Re: [patch 3/8] mm: memcg: clean up fault accounting

From: KAMEZAWA Hiroyuki
Date: Wed Nov 23 2011 - 19:01:22 EST


On Wed, 23 Nov 2011 16:42:26 +0100
Johannes Weiner <hannes@xxxxxxxxxxx> wrote:

> From: Johannes Weiner <jweiner@xxxxxxxxxx>
>
> The fault accounting functions have a single, memcg-internal user, so
> they don't need to be global. In fact, their one-line bodies can be
> directly folded into the caller. And since faults happen one at a
> time, use this_cpu_inc() directly instead of this_cpu_add(foo, 1).
>
> Signed-off-by: Johannes Weiner <jweiner@xxxxxxxxxx>

Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>

I'm not sure why Ying Han used this style.

--
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/