From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-177.mta1.migadu.com (out-177.mta1.migadu.com [95.215.58.177]) (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 6504040DFA8 for ; Wed, 6 May 2026 03:22:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778037746; cv=none; b=rgeb+lhI84Sind+jRYV11aTRExcHwS2KNYGyzJbNj/DQjirrD6UE6KbzBm0RIhIMX0ZaqIO6SLI+ICY7qXmHEg+coMg+wJIibjX5DfRdAYNrZ327clGV9NkYhF5Eh+Zogpy9HA7v7/ucPpVwPFbWPGZ0JrVKD0LQe9oZKUimG8k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778037746; c=relaxed/simple; bh=xSQm3QFAqiknwM6Qz7mzvlapH0fEmO89tTqLxPhRkUo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=e+OB7BoTfJ2tSs4xisMOxo8mc5vYKsEioyhfT56FIIBmccJ5qnqrjvMoyZ8Rvw9Adhx25cHNZe/u2G5n0WLuT6gFUM1B+nStm0h4XMbKJjVh5z7SnWBA1pnduUtGeu19d6h2aI33cH6uKJZLK6juNYXpgJYgfr3wCDFfpKTrASc= 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=pao0HPMz; arc=none smtp.client-ip=95.215.58.177 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="pao0HPMz" Message-ID: <997b99a7-7ad6-4ac8-802d-f663c8037315@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1778037741; 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=itj8eIG8sThAhvpCSo1Y/AOcXMvz1Dcruyd9jNf32kM=; b=pao0HPMzzDd0zlSVOOaBLwXBycBTmCV1UuL+VpfpU7Gz5wIqVbmmBfI0CxbieVgKIqqn6N P2MWBqG0J2lyxGSJRGL7OlULEbkXcvAlD4XM74Uw3mNjEAaiwYTN6Z1BQoPUceheYc0mNS tGqeIKmcrMHmuR2dUVngnyIkRKkwrJg= Date: Wed, 6 May 2026 11:22:07 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH 1/2] mm/memory_failure: use bool for hugetlb indicator in try_memory_failure_hugetlb To: Miaohe Lin , Andrew Morton Cc: Ye Liu , Naoya Horiguchi , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20260407020715.2269255-1-ye.liu@linux.dev> <20260407020715.2269255-2-ye.liu@linux.dev> <0eb4a198-e80b-127d-e729-3af6f63f6d5b@huawei.com> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Ye Liu In-Reply-To: <0eb4a198-e80b-127d-e729-3af6f63f6d5b@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Friendly ping. 在 2026/4/10 14:38, Miaohe Lin 写道: > On 2026/4/7 10:07, Ye Liu wrote: >> From: Ye Liu >> >> The hugetlb indicator in try_memory_failure_hugetlb is a Boolean >> flag, but was declared and assigned as int/0/1. Convert to `bool` >> and `true`/`false` for clarity and type safety. >> >> - try_memory_failure_hugetlb(unsigned long pfn, int flags, bool *hugetlb) >> - testcase path in memory_failure(): bool hugetlb = false >> - clear semantic conversion in MF_HUGETLB_NON_HUGEPAGE >> - preserve behavior (no functional change) >> >> Signed-off-by: Ye Liu > > Acked-by: Miaohe Lin > > Thanks. > . -- Thanks, Ye Liu