Messages in this thread Patch in this message | | | From | Miaohe Lin <> | Subject | [PATCH v2 09/10] hugetlb: remove meaningless BUG_ON(huge_pte_none()) | Date | Thu, 1 Sep 2022 20:00:29 +0800 |
| |
When code reaches here, invalid page would have been accessed if huge pte is none. So this BUG_ON(huge_pte_none()) is meaningless. Remove it.
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Reviewed-by: Muchun Song <songmuchun@bytedance.com> --- mm/hugetlb.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 2ba45addcdeb..9178ab521c74 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -5379,7 +5379,6 @@ static vm_fault_t hugetlb_wp(struct mm_struct *mm, struct vm_area_struct *vma, u32 hash; put_page(old_page); - BUG_ON(huge_pte_none(pte)); /* * Drop hugetlb_fault_mutex and vma_lock before * unmapping. unmapping needs to hold vma_lock -- 2.23.0
| |