Skip to content

Commit cc3e2af

Browse files
Xie XiuQitorvalds
authored andcommitted
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>
1 parent cc637b1 commit cc3e2af

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎include/linux/mm.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2157,7 +2157,7 @@ extern int soft_offline_page(struct page *page, int flags);
21572157
/*
21582158
* Error handlers for various types of pages.
21592159
*/
2160-
enum mf_outcome {
2160+
enum mf_result {
21612161
MF_IGNORED, /* Error: cannot be handled */
21622162
MF_FAILED, /* Error: handling failed */
21632163
MF_DELAYED, /* Will be handled later */

‎mm/memory-failure.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,8 @@ static struct page_state {
852852
* "Dirty/Clean" indication is not 100% accurate due to the possibility of
853853
* setting PG_dirty outside page lock. See also comment above set_page_dirty().
854854
*/
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)
856857
{
857858
pr_err("MCE %#lx: recovery action for %s: %s\n",
858859
pfn, action_page_types[type], action_name[result]);

0 commit comments

Comments
 (0)