]> git.baikalelectronics.ru Git - kernel.git/commit
HWPOISON: Stop shrinking at right page count
authorAndi Kleen <ak@linux.intel.com>
Tue, 28 Sep 2010 05:37:55 +0000 (07:37 +0200)
committerAndi Kleen <ak@linux.intel.com>
Thu, 7 Oct 2010 07:47:10 +0000 (09:47 +0200)
commit4df90a5cfa095e1c75f58c600462f358bff9e068
treee83afbf6be4f594d6f0cd1bf815e9469d4a14f18
parent478739985ecf25a834dc84d81d919c16f8d8337f
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>
mm/memory-failure.c