diff options
| author | Lance Yang <lance.yang@linux.dev> | 2026-09-17 13:40:15 +0800 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-09-29 23:13:31 -0700 |
| commit | d450b11940e83bd3af5568e290df8fb58d6bbc15 (patch) | |
| tree | c49bdacedcb5aaa7e0eb0db2bd4d59baab1d095d /scripts/patch-kernel | |
| parent | 265908aecbe394e0fcaf6b40045e12fad79560fc (diff) | |
| download | linux-next-d450b11940e83bd3af5568e290df8fb58d6bbc15.tar.gz linux-next-d450b11940e83bd3af5568e290df8fb58d6bbc15.zip | |
mm/huge_memory: simplify pgtable deposit detection
Whether a PMD has a deposited PTE page table only depends on whether the
architecture requires deposits or the VMA is anonymous.
Implement this rule directly in vma_has_deposited_pgtable(), avoiding
mistaking a non-anonymous raw PFN PMD for one with a deposit and
attempting to withdraw a page table that was never deposited.
There is no known in-tree workload that triggers this. Mostly a
defensive/simplifying change.
Link: https://lore.kernel.org/20260917054015.23553-1-lance.yang@linux.dev
Signed-off-by: Lance Yang <lance.yang@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Suggested-by: David Hildenbrand <david@kernel.org>
Reviewed-by: Kiryl Shutsemau (Meta) <kas@kernel.org>
Acked-by: David Hildenbrand (Arm) <david@kernel.org>
Acked-by: Zi Yan <ziy@nvidia.com>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Barry Song <baohua@kernel.org>
Cc: Dev Jain <dev.jain@arm.com>
Cc: Liam R. Howlett <liam@infradead.org>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
