mirror of
https://github.com/torvalds/linux.git
synced 2026-11-10 17:11:02 +01:00
mm/rmap: remove stale hugetlb check in try_to_unmap_one
Post commit d4ec557282 ("mm/rmap: add
try_to_unmap_poisoned_hugetlb_one") try_to_unmap_one() cannot be called
with a hugetlb folio. Therefore remove the folio_test_hugetlb() check.
Link: https://lore.kernel.org/20260831082849.3573957-1-dev.jain@arm.com
Signed-off-by: Dev Jain <dev.jain@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
Reviewed-by: Lance Yang <lance.yang@linux.dev>
Reviewed-by: Kunwu Chan <kunwu.chan@gmail.com>
Acked-by: David Hildenbrand (Arm) <david@kernel.org>
Cc: Harry Yoo <harry@kernel.org>
Cc: Jann Horn <jannh@google.com>
Cc: Liam R. Howlett <liam@infradead.org>
Cc: Rik van Riel <riel@surriel.com>
Cc: Vlastimil Babka <vbabka@kernel.org>
This commit is contained in:
parent
11bb36dbdf
commit
39580da0aa
|
|
@ -2301,11 +2301,8 @@ static bool try_to_unmap_one(struct folio *folio, struct vm_area_struct *vma,
|
|||
VM_BUG_ON_FOLIO(!pvmw.pte, folio);
|
||||
|
||||
address = pvmw.address;
|
||||
if (folio_test_hugetlb(folio)) {
|
||||
pteval = huge_ptep_get(mm, address, pvmw.pte);
|
||||
} else {
|
||||
pteval = ptep_get(pvmw.pte);
|
||||
}
|
||||
pteval = ptep_get(pvmw.pte);
|
||||
|
||||
if (likely(pte_present(pteval))) {
|
||||
pfn = pte_pfn(pteval);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user