]> git.baikalelectronics.ru Git - kernel.git/commit
hugetlb: remove meaningless BUG_ON(huge_pte_none())
authorMiaohe Lin <linmiaohe@huawei.com>
Thu, 1 Sep 2022 12:00:29 +0000 (20:00 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 Sep 2022 03:26:10 +0000 (20:26 -0700)
commitcaa7ac51408346ea620ef4f5831eb2c0415b9931
tree063017aedb2d1aaa7df9eb895c4388f881cdf9d3
parent73e84111e38197b78fc5e32f179e12be53c2965d
hugetlb: remove meaningless BUG_ON(huge_pte_none())

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.

Link: https://lkml.kernel.org/r/20220901120030.63318-10-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb.c