Re: [patch 03/10] mm: memcg: push down PageSwapCache check into uncharge entry functions

2012-07-19 Thread Kamezawa Hiroyuki
(2012/07/12 2:02), Johannes Weiner wrote: > Not all uncharge paths need to check if the page is swapcache, some of > them can know for sure. > > Push down the check into all callsites of uncharge_common() so that > the patch that removes some of them is more obvious. > > Signed-off-by: Johannes

Re: [patch 03/10] mm: memcg: push down PageSwapCache check into uncharge entry functions

2012-07-19 Thread Kamezawa Hiroyuki
(2012/07/12 2:02), Johannes Weiner wrote: Not all uncharge paths need to check if the page is swapcache, some of them can know for sure. Push down the check into all callsites of uncharge_common() so that the patch that removes some of them is more obvious. Signed-off-by: Johannes Weiner

[patch 03/10] mm: memcg: push down PageSwapCache check into uncharge entry functions

2012-07-11 Thread Johannes Weiner
Not all uncharge paths need to check if the page is swapcache, some of them can know for sure. Push down the check into all callsites of uncharge_common() so that the patch that removes some of them is more obvious. Signed-off-by: Johannes Weiner Acked-by: Michal Hocko --- mm/memcontrol.c |

[patch 03/10] mm: memcg: push down PageSwapCache check into uncharge entry functions

2012-07-11 Thread Johannes Weiner
Not all uncharge paths need to check if the page is swapcache, some of them can know for sure. Push down the check into all callsites of uncharge_common() so that the patch that removes some of them is more obvious. Signed-off-by: Johannes Weiner han...@cmpxchg.org Acked-by: Michal Hocko