mm,hugetlb: drop unlikelys from hugetlb_fault
authorOscar Salvador <osalvador@suse.de>
Mon, 30 Jun 2025 14:42:12 +0000 (16:42 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 13 Jul 2025 23:38:23 +0000 (16:38 -0700)
commit1c0841140b5bd09f03e568d4d9341c874c396511
tree799d341976c3f6ad380ede48d7dbcef23fa472f5
parentcced784d2cb2a708cdfe4784514c2a10af3af37d
mm,hugetlb: drop unlikelys from hugetlb_fault

The unlikely predates an era where we were checking for
hwpoisoned/migration entries prior to checking whether the pte was
present.

Currently, we check for the pte to be a migration/hwpoison entry after we
have checked that is not present, so it must be either one or the other.

Link: https://lkml.kernel.org/r/20250627102904.107202-6-osalvador@suse.de
Link: https://lkml.kernel.org/r/20250630144212.156938-6-osalvador@suse.de
Signed-off-by: Oscar Salvador <osalvador@suse.de>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Gavin Guo <gavinguo@igalia.com>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Peter Xu <peterx@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb.c