linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm/khugepaged: continue to collapse on SCAN_PMD_NONE
@ 2025-11-12  2:00 Wei Yang
  2025-11-12  2:37 ` Lance Yang
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Wei Yang @ 2025-11-12  2:00 UTC (permalink / raw)
  To: akpm, david, lorenzo.stoakes, ziy, baolin.wang, Liam.Howlett,
	npache, ryan.roberts, dev.jain, baohua, lance.yang
  Cc: linux-mm, Wei Yang

SCAN_PMD_NONE means current pmd is empty, but we can still continue
collapse next pmd range.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
---
 mm/khugepaged.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mm/khugepaged.c b/mm/khugepaged.c
index 7e8cb181d5bd..4c2217076ad3 100644
--- a/mm/khugepaged.c
+++ b/mm/khugepaged.c
@@ -2835,6 +2835,7 @@ int madvise_collapse(struct vm_area_struct *vma, unsigned long start,
 			goto handle_result;
 		/* Whitelisted set of results where continuing OK */
 		case SCAN_PMD_NULL:
+		case SCAN_PMD_NONE:
 		case SCAN_PTE_NON_PRESENT:
 		case SCAN_PTE_UFFD_WP:
 		case SCAN_LACK_REFERENCED_PAGE:
-- 
2.34.1



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-11-13  2:44 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-12  2:00 [PATCH] mm/khugepaged: continue to collapse on SCAN_PMD_NONE Wei Yang
2025-11-12  2:37 ` Lance Yang
2025-11-12  3:40   ` Wei Yang
2025-11-12  3:58     ` Dev Jain
2025-11-12  9:10       ` Wei Yang
2025-11-12  3:33 ` Dev Jain
2025-11-12  9:51 ` David Hildenbrand (Red Hat)
2025-11-12  9:51   ` David Hildenbrand (Red Hat)
2025-11-12 11:27     ` Wei Yang
2025-11-12 11:41       ` David Hildenbrand (Red Hat)
2025-11-13  2:44 ` Baolin Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox