Re: [PATCH 2/3] mm: simplify lock_page_memcg()

2016-02-03 Thread Vladimir Davydov
On Fri, Jan 29, 2016 at 06:19:32PM -0500, Johannes Weiner wrote: > Now that migration doesn't clear page->mem_cgroup of live pages > anymore, it's safe to make lock_page_memcg() and the memcg stat > functions take pages, and spare the callers from memcg objects. > > Suggested-by: Vladimir Davydov

Re: [PATCH 2/3] mm: simplify lock_page_memcg()

2016-02-03 Thread Vladimir Davydov
On Fri, Jan 29, 2016 at 06:19:32PM -0500, Johannes Weiner wrote: > Now that migration doesn't clear page->mem_cgroup of live pages > anymore, it's safe to make lock_page_memcg() and the memcg stat > functions take pages, and spare the callers from memcg objects. > > Suggested-by: Vladimir Davydov

[PATCH 2/3] mm: simplify lock_page_memcg()

2016-01-29 Thread Johannes Weiner
Now that migration doesn't clear page->mem_cgroup of live pages anymore, it's safe to make lock_page_memcg() and the memcg stat functions take pages, and spare the callers from memcg objects. Suggested-by: Vladimir Davydov Signed-off-by: Johannes Weiner --- fs/buffer.c| 18

[PATCH 2/3] mm: simplify lock_page_memcg()

2016-01-29 Thread Johannes Weiner
Now that migration doesn't clear page->mem_cgroup of live pages anymore, it's safe to make lock_page_memcg() and the memcg stat functions take pages, and spare the callers from memcg objects. Suggested-by: Vladimir Davydov Signed-off-by: Johannes Weiner