From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-181.mta0.migadu.com (out-181.mta0.migadu.com [91.218.175.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5BD8B19309C for ; Thu, 19 Mar 2026 03:29:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773890961; cv=none; b=HY22uiTk/vhAJ+FtGZHYXfPEMa9c+NJybobjCdoq/0alrOGp7H/Ib3jZK8GQfiRmdC8gOz/pMNLNlKbik+WzsiOaMKxy0UBllztzMQ6NBaCLmayKVH8AhRNKkfGl+7AzJjEBMib8ROr2VH34wSkZ/NI3vVA6oQHwEXpJJ//3Ajc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773890961; c=relaxed/simple; bh=7iVR6CsVlsntzoHQRu6VXjtSuQML7VH9Sv388ANcvG4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=k12KtdzFubIegsHx/shjY/rXOtb3RUE6FluC3CzPh9cbHeqxabRiTAYGEj7/nm2BDOyCHDCDxJdtFizMOtnwENvsOJj8/8MFZSdEkBpcka3l3pTWPzhHfz/yJliKmA+jDIVktGRTGh/X9zivKR0BRgb0FJaNKQd8r/kzA33aC/0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=SiMp9/si; arc=none smtp.client-ip=91.218.175.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="SiMp9/si" Message-ID: <4492ce34-a498-4ec7-86ac-9ac1c164baec@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1773890958; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4Jdin2qZ38rLer8OS0q7B4P3hCVAxCOXUo7HjD7FoDE=; b=SiMp9/siy8oo1yxfsHFN2LvE5xOmdmA5kGs0JVjE6qrFKJjVjbZaMTILA/dsyNw3eSo6WU vOys8OEkVGvUMMUYX9mMJTqgBAD08Ucm818Sc133Kqg8YNkEaysdtRacE3l+uTn6cGExTy Aw5e8wGJ0HBjFc1FNbbNd/e1JQa7HaI= Date: Thu, 19 Mar 2026 11:29:09 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH 3/8] mm/huge_memory: have zap_huge_pmd return a boolean, add kdoc To: "Lorenzo Stoakes (Oracle)" Cc: David Hildenbrand , Zi Yan , Baolin Wang , "Liam R . Howlett" , Nico Pache , Ryan Roberts , Dev Jain , Barry Song , Lance Yang , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton References: <20e00d784adf1540c32b46024a709dfe1be93019.1773865827.git.ljs@kernel.org> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Qi Zheng In-Reply-To: <20e00d784adf1540c32b46024a709dfe1be93019.1773865827.git.ljs@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT 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) > --- > include/linux/huge_mm.h | 4 ++-- > mm/huge_memory.c | 23 ++++++++++++++++------- > 2 files changed, 18 insertions(+), 9 deletions(-) > Acked-by: Qi Zheng