[ 16/89] memcg: oom: fix totalpages calculation for memory.swappiness==0

2012-12-03 Thread Ben Hutchings
3.2-stable review patch. If anyone has any objections, please let me know. -- From: Michal Hocko commit 9a5a8f19b43430752067ecaee62fc59e11e88fa6 upstream. oom_badness() takes a totalpages argument which says how many pages are available and it uses it as a base for the score

[ 16/89] memcg: oom: fix totalpages calculation for memory.swappiness==0

2012-12-03 Thread Ben Hutchings
3.2-stable review patch. If anyone has any objections, please let me know. -- From: Michal Hocko mho...@suse.cz commit 9a5a8f19b43430752067ecaee62fc59e11e88fa6 upstream. oom_badness() takes a totalpages argument which says how many pages are available and it uses it as a base