Re: [PATCH v2 05/11] Add a __GFP_KMEMCG flag
From: Kamezawa Hiroyuki <hidden>
Date: 2012-08-10 17:08:09
Also in:
linux-mm, lkml
From: Kamezawa Hiroyuki <hidden>
Date: 2012-08-10 17:08:09
Also in:
linux-mm, lkml
(2012/08/09 22:01), Glauber Costa wrote:
This flag is used to indicate to the callees that this allocation is a kernel allocation in process context, and should be accounted to current's memcg. It takes numerical place of the of the recently removed __GFP_NO_KSWAPD. Signed-off-by: Glauber Costa <redacted> CC: Christoph Lameter <redacted> CC: Pekka Enberg <penberg-bbCR+/B0CizivPeTLB3BmA@public.gmane.org> CC: Michal Hocko <redacted> CC: Kamezawa Hiroyuki <redacted> CC: Johannes Weiner <redacted> CC: Suleiman Souhlal <redacted> CC: Rik van Riel <redacted> CC: Mel Gorman <redacted>
Okay, so, only memcg-aware allocations are accounted. It seems a safe way to go. Acked-by: KAMEZAWA Hiroyuki <redacted>