diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2022-09-01 14:00:29 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-09-12 05:26:10 +0200 |
commit | 5e6b1bf1b5c3c8b72fa2eea9d8731d5c59773945 (patch) | |
tree | 063017aedb2d1aaa7df9eb895c4388f881cdf9d3 /mm/hugetlb.c | |
parent | hugetlb: add comment for subtle SetHPageVmemmapOptimized() (diff) | |
download | linux-5e6b1bf1b5c3c8b72fa2eea9d8731d5c59773945.tar.xz linux-5e6b1bf1b5c3c8b72fa2eea9d8731d5c59773945.zip |
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>
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r-- | mm/hugetlb.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index fe7b69a970aa..46387208fd9d 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -5345,7 +5345,6 @@ retry_avoidcopy: u32 hash; put_page(old_page); - BUG_ON(huge_pte_none(pte)); /* * Drop hugetlb_fault_mutex and i_mmap_rwsem before * unmapping. unmapping needs to hold i_mmap_rwsem |