Re: [PATCH V2] mm/khugepaged: fix comment for default scan sleep duration
From: David Hildenbrand
Date: Wed Oct 15 2025 - 05:38:25 EST
On 15.10.25 11:29, wang lian wrote:
The comment for khugepaged_scan_sleep_millisecs incorrectly states
the default scan period is 30 seconds. The actual default value in the
code is 10000ms (10 seconds).
This patch corrects the comment to match the code, preventing potential
confusion. The incorrect comment has existed since the feature was
first introduced.
"While at it, replace the magic value 512 by HPAGE_PMD_NR and use 'ptes'."
Fixes: ba76149f47d8 ("thp: khugepaged")
I prefer to not have fixes for comments. It tricks people into thinking that this might warrant a backport.
Likely no need to resend and Andrew can fix it up when applying.
Acked-by: David Hildenbrand <david@xxxxxxxxxx>
--
Cheers
David / dhildenb