diff options
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r-- | mm/hugetlb.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 67cd03239b75..96991ded82fe 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c | |||
@@ -2589,7 +2589,8 @@ retry: | |||
2589 | * So we need to block hugepage fault by PG_hwpoison bit check. | 2589 | * So we need to block hugepage fault by PG_hwpoison bit check. |
2590 | */ | 2590 | */ |
2591 | if (unlikely(PageHWPoison(page))) { | 2591 | if (unlikely(PageHWPoison(page))) { |
2592 | ret = VM_FAULT_HWPOISON; | 2592 | ret = VM_FAULT_HWPOISON | |
2593 | VM_FAULT_SET_HINDEX(h - hstates); | ||
2593 | goto backout_unlocked; | 2594 | goto backout_unlocked; |
2594 | } | 2595 | } |
2595 | page_dup_rmap(page); | 2596 | page_dup_rmap(page); |
@@ -2656,7 +2657,8 @@ int hugetlb_fault(struct mm_struct *mm, struct vm_area_struct *vma, | |||
2656 | migration_entry_wait(mm, (pmd_t *)ptep, address); | 2657 | migration_entry_wait(mm, (pmd_t *)ptep, address); |
2657 | return 0; | 2658 | return 0; |
2658 | } else if (unlikely(is_hugetlb_entry_hwpoisoned(entry))) | 2659 | } else if (unlikely(is_hugetlb_entry_hwpoisoned(entry))) |
2659 | return VM_FAULT_HWPOISON; | 2660 | return VM_FAULT_HWPOISON_LARGE | |
2661 | VM_FAULT_SET_HINDEX(h - hstates); | ||
2660 | } | 2662 | } |
2661 | 2663 | ||
2662 | ptep = huge_pte_alloc(mm, address, huge_page_size(h)); | 2664 | ptep = huge_pte_alloc(mm, address, huge_page_size(h)); |