commit | 47f43e7efadacc627f325aba64c6a547de0926db | [log] [tgz] |
---|---|---|
author | Andi Kleen <ak@linux.intel.com> | Tue Sep 28 07:37:55 2010 +0200 |
committer | Andi Kleen <ak@linux.intel.com> | Thu Oct 07 09:47:10 2010 +0200 |
tree | e83afbf6be4f594d6f0cd1bf815e9469d4a14f18 | |
parent | 0d9ee6a2d4a6e92c49e6fa9469e5731d21ee203e [diff] |
HWPOISON: Stop shrinking at right page count When we call the slab shrinker to free a page we need to stop at page count one because the caller always holds a single reference, not zero. This avoids useless looping over slab shrinkers and freeing too much memory. Reviewed-by: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Andi Kleen <ak@linux.intel.com>