HWPOISON: Clean up memory_failure() vs. __memory_failure()
authorTony Luck <tony.luck@intel.com>
Thu, 15 Dec 2011 18:48:12 +0000 (10:48 -0800)
committerTony Luck <tony.luck@intel.com>
Tue, 3 Jan 2012 20:06:32 +0000 (12:06 -0800)
commitcd42f4a3b2b1c4cbd997363dc57821953d73fd87
treec7db057922def7f742fbcd283324051bdd92b053
parentdc47ce90c3a822cd7c9e9339fe4d5f61dcb26b50
HWPOISON: Clean up memory_failure() vs. __memory_failure()

There is only one caller of memory_failure(), all other users call
__memory_failure() and pass in the flags argument explicitly. The
lone user of memory_failure() will soon need to pass flags too.

Add flags argument to the callsite in mce.c. Delete the old memory_failure()
function, and then rename __memory_failure() without the leading "__".

Provide clearer message when action optional memory errors are ignored.

Acked-by: Borislav Petkov <bp@amd64.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/x86/kernel/cpu/mcheck/mce.c
drivers/base/memory.c
include/linux/mm.h
mm/hwpoison-inject.c
mm/madvise.c
mm/memory-failure.c