Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

memory-failure: change type of action_result's param 3 to enum

Change type of action_result's param 3 to enum for type consistency,
and rename mf_outcome to mf_result for clearly.

Signed-off-by: Xie XiuQi <xiexiuqi@huawei.com>
Acked-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Chen Gong <gong.chen@linux.intel.com>
Cc: Jim Davis <jim.epost@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Tony Luck <tony.luck@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Xie XiuQi and committed by
Linus Torvalds
cc3e2af4 cc637b17

+3 -2
+1 -1
include/linux/mm.h
··· 2157 2157 /* 2158 2158 * Error handlers for various types of pages. 2159 2159 */ 2160 - enum mf_outcome { 2160 + enum mf_result { 2161 2161 MF_IGNORED, /* Error: cannot be handled */ 2162 2162 MF_FAILED, /* Error: handling failed */ 2163 2163 MF_DELAYED, /* Will be handled later */
+2 -1
mm/memory-failure.c
··· 852 852 * "Dirty/Clean" indication is not 100% accurate due to the possibility of 853 853 * setting PG_dirty outside page lock. See also comment above set_page_dirty(). 854 854 */ 855 - static void action_result(unsigned long pfn, enum mf_action_page_type type, int result) 855 + static void action_result(unsigned long pfn, enum mf_action_page_type type, 856 + enum mf_result result) 856 857 { 857 858 pr_err("MCE %#lx: recovery action for %s: %s\n", 858 859 pfn, action_page_types[type], action_name[result]);