Re: [PATCH v5 1/4] mm: khugepaged: export set_recommended_min_free_kbytes()

Zi Yan
2026-03-10T18:32:58Z

On 10 Mar 2026, at 13:57, Breno Leitao wrote:

> Make set_recommended_min_free_kbytes() callable from outside
> khugepaged.c by removing the static qualifier and adding a
> declaration in mm/internal.h.
>
> This allows callers that change THP settings to recalculate
> watermarks without going through start_stop_khugepaged().
>
> Suggested-by: Lorenzo Stoakes (Oracle) <ljs@kernel.org>
> Reviewed-by: Lorenzo Stoakes (Oracle) <ljs@kernel.org>
> Acked-by: David Hildenbrand (Arm) <david@kernel.org>
> Signed-off-by: Breno Leitao <leitao@debian.org>
> ---
> mm/internal.h | 5 +++++
> mm/khugepaged.c | 2 +-
> 2 files changed, 6 insertions(+), 1 deletion(-)
>
Reviewed-by: Zi Yan <ziy@nvidia.com>

Best Regards,
Yan, Zi