Re: [PATCH 3/8] mm/huge_memory: have zap_huge_pmd return a boolean, add kdoc

From: Qi Zheng

Date: Wed Mar 18 2026 - 23:29:33 EST




On 3/19/26 4:39 AM, Lorenzo Stoakes (Oracle) wrote:
There's no need to use the ancient approach of returning an integer here,
just return a boolean.

Also update flush_needed to be a boolean, similarly.

Also add a kdoc comment describing the function.

Signed-off-by: Lorenzo Stoakes (Oracle) <ljs@xxxxxxxxxx>
---
include/linux/huge_mm.h | 4 ++--
mm/huge_memory.c | 23 ++++++++++++++++-------
2 files changed, 18 insertions(+), 9 deletions(-)


Acked-by: Qi Zheng <zhengqi.arch@xxxxxxxxxxxxx>