OpenVZ Forum


Home » Mailing lists » Devel » Re: [PATCH v2 06/13] slab: Add kmem_cache_gfp_flags() helper function.
Re: [PATCH v2 06/13] slab: Add kmem_cache_gfp_flags() helper function. [message #45827 is a reply to message #45527] Wed, 14 March 2012 22:08 Go to previous message
Suleiman Souhlal is currently offline  Suleiman Souhlal
Messages: 64
Registered: February 2012
Member
On Wed, Mar 14, 2012 at 4:48 AM, Glauber Costa <glommer@parallels.com> wrote:
> So what?
> That function is only called from slab.c anyway. Let slab call it
> mem_cgroup_get_kmem_cache(cachep, flags | cachep->allocflags);
> and slub
> mem_cgroup_get_kmem_cache(cachep, flags | cachep->gfpflags);

Ok, I will do that.
I felt like it was better to do it in a single place, instead of doing
it at all the callers.

-- Suleiman
 
Read Message
Read Message
Previous Topic: Re: [PATCH v2 07/13] memcg: Slab accounting.
Next Topic: Re: [PATCH v2 02/13] memcg: Kernel memory accounting infrastructure.
Goto Forum:
  


Current Time: Wed Jul 17 12:11:54 GMT 2024

Total time taken to generate the page: 0.02728 seconds