login
Header Space

 
 

Re: [-mm] Add an owner to the mm_struct (v2)

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Balbir Singh <balbir@...>
Cc: Paul Menage <menage@...>, Pavel Emelianov <xemul@...>, Hugh Dickins <hugh@...>, Sudhir Kumar <skumar@...>, YAMAMOTO Takashi <yamamoto@...>, <lizf@...>, <linux-kernel@...>, <taka@...>, <linux-mm@...>, David Rientjes <rientjes@...>, Andrew Morton <akpm@...>
Date: Friday, March 28, 2008 - 6:48 am

On Fri, 28 Mar 2008 13:53:16 +0530
Balbir Singh <balbir@linux.vnet.ibm.com> wrote:

Hmm, I like this approach. 

-a bit off topic-
BTW, could you move mem_cgroup_from_task() to include/linux/memcontrol.h ?

Then, I'll add an interface like
mem_cgroup_charge_xxx(struct page *page, struct mem_cgroup *mem, gfp_mask mask)

This can be called in following way:
mem_cgroup_charge_xxx(page, mem_cgroup_from_task(current), GFP_XXX);
and I don't have to access mm_struct's member in this case.

Thanks,
-Kame

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[-mm] Add an owner to the mm_struct (v2), Balbir Singh, (Fri Mar 28, 4:23 am)
Re: [-mm] Add an owner to the mm_struct (v2), Paul Menage, (Fri Mar 28, 7:01 am)
Re: [-mm] Add an owner to the mm_struct (v2), Balbir Singh, (Fri Mar 28, 8:36 am)
Re: [-mm] Add an owner to the mm_struct (v2), Paul Menage, (Fri Mar 28, 10:05 am)
Re: [-mm] Add an owner to the mm_struct (v2), Balbir Singh, (Fri Mar 28, 10:52 am)
Re: [-mm] Add an owner to the mm_struct (v2), Paul Menage, (Fri Mar 28, 11:38 am)
Re: [-mm] Add an owner to the mm_struct (v2), Balbir Singh, (Fri Mar 28, 2:10 pm)
Re: [-mm] Add an owner to the mm_struct (v2), Paul Menage, (Fri Mar 28, 2:52 pm)
Re: [-mm] Add an owner to the mm_struct (v2), Balbir Singh, (Sat Mar 29, 1:46 am)
Re: [-mm] Add an owner to the mm_struct (v2), Balbir Singh, (Fri Mar 28, 9:02 pm)
Re: [-mm] Add an owner to the mm_struct (v2), Balbir Singh, (Fri Mar 28, 8:54 am)
Re: [-mm] Add an owner to the mm_struct (v2), Paul Menage, (Fri Mar 28, 10:06 am)
Re: [-mm] Add an owner to the mm_struct (v2), KAMEZAWA Hiroyuki, (Fri Mar 28, 6:55 am)
Re: [-mm] Add an owner to the mm_struct (v2), Balbir Singh, (Fri Mar 28, 6:52 am)
Re: [-mm] Add an owner to the mm_struct (v2), KAMEZAWA Hiroyuki, (Fri Mar 28, 7:15 am)
Re: [-mm] Add an owner to the mm_struct (v2), KAMEZAWA Hiroyuki, (Fri Mar 28, 7:21 am)
Re: [-mm] Add an owner to the mm_struct (v2), Paul Menage, (Fri Mar 28, 7:04 am)
Re: [-mm] Add an owner to the mm_struct (v2), KAMEZAWA Hiroyuki, (Fri Mar 28, 6:48 am)
Re: [-mm] Add an owner to the mm_struct (v2), Balbir Singh, (Fri Mar 28, 6:51 am)
Re: [-mm] Add an owner to the mm_struct (v2), KAMEZAWA Hiroyuki, (Fri Mar 28, 7:06 am)
Re: [-mm] Add an owner to the mm_struct (v2), Jiri Slaby, (Fri Mar 28, 5:41 am)
Re: [-mm] Add an owner to the mm_struct (v2), Jiri Slaby, (Fri Mar 28, 5:43 am)
Re: [-mm] Add an owner to the mm_struct (v2), Balbir Singh, (Fri Mar 28, 6:11 am)
speck-geostationary