Re: [PATCH v3 05/13] Add a __GFP_KMEMCG flag
From: Glauber Costa <hidden>
Date: 2012-09-19 07:43:20
Also in:
cgroups, lkml
From: Glauber Costa <hidden>
Date: 2012-09-19 07:43:20
Also in:
cgroups, lkml
On 09/18/2012 07:06 PM, Christoph Lameter wrote:
On Tue, 18 Sep 2012, Glauber Costa wrote:quoted
+++ b/include/linux/gfp.h@@ -35,6 +35,11 @@ struct vm_area_struct; #else #define ___GFP_NOTRACK 0 #endif +#ifdef CONFIG_MEMCG_KMEM +#define ___GFP_KMEMCG 0x400000u +#else +#define ___GFP_KMEMCG 0 +#endifCould you leave __GFP_MEMCG a simple definition and then define GFP_MEMCG to be zer0 if !MEMCG_KMEM? I think that would be cleaner and the __GFP_KMEMCHECK another case that would be good to fix up.
I can, but what does this buy us? Also, in any case, this can be done incrementally, and for the other flag as well, as you describe. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>