Re: [PATCH] memcg reclaim shouldn't change zone->recent_rotatedstatics.

From: Andrew Morton
Date: Tue Nov 25 2008 - 18:54:53 EST


On Tue, 25 Nov 2008 12:22:53 +0900 (JST)
KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx> wrote:

> + if (scan_global_lru(sc))

mutter. scan_global_lru() is a terrible function name. Anyone reading
that code would expect that this function, umm, scans the global LRU.

gcc has a nice convention wherein such functions have a name ending in
"_p" (for "predicate"). Don't do this :)
--
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/