From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from canpmsgout02.his.huawei.com (canpmsgout02.his.huawei.com [113.46.200.217]) (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 0C4E538734E for ; Fri, 10 Apr 2026 06:38:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=113.46.200.217 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775803125; cv=none; b=jQ7QJp8HYiTdu5PJJGq5W61vOajlqIRnKz+G+FMk7U1bWQE4Gk6uuPcqX8++nvd11wUGyqOfBV8fA8iDP6CMXno7muhz05MhNK330q0Q+kjDTVBA/nueDL7HJ7DrO/HJUZO1ibYAMuDR3pubibCHt00LfOEwrDqgujDWJCgFvdc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775803125; c=relaxed/simple; bh=IzwqQbc5XeGOYOT8aD4xDgMDd2HLPfvayAQ/eh9LdpU=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=A1mhKvniJkVYklAUWjNYoZ4hZ5XKcnT3cZlj+G0psuuTADiTo7x6lwfl2lHLiHYxMFXNFCRKK+TjQzPrnacN67kO0KCaGbJlYKZvE7Z9vp9VNTF3/fLRxZYOlnJMR+KMlA5yU4sWk7rTlxmtz12VClVpUcIqUTABxhpCoo0fjtM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b=EP+J6DXF; arc=none smtp.client-ip=113.46.200.217 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b="EP+J6DXF" dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=8rfhBI7v/0UCAvMxEbqmEnO+ApvS3TiEWtoH0oFeamY=; b=EP+J6DXFj55X95g6q1I4QHniIfnGhXBXOEAl2IK5+i0qbyD6dZRXbJ95jIokXsH07DCVs5a88 BAWDPtVKEWdJqwm4l2ZgrnIoYDi3vXhE2Tl+xpS0cFOemnaQOQgG5Xf3JsdM24xpt9Mw4Jop6FJ RMi4Wdvvmy39VcK8dy7KMGM= Received: from mail.maildlp.com (unknown [172.19.162.144]) by canpmsgout02.his.huawei.com (SkyGuard) with ESMTPS id 4fsRmZ2S7Tzcb29; Fri, 10 Apr 2026 14:32:14 +0800 (CST) Received: from dggemv712-chm.china.huawei.com (unknown [10.1.198.32]) by mail.maildlp.com (Postfix) with ESMTPS id 207394056E; Fri, 10 Apr 2026 14:38:35 +0800 (CST) Received: from kwepemq500010.china.huawei.com (7.202.194.235) by dggemv712-chm.china.huawei.com (10.1.198.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Fri, 10 Apr 2026 14:38:34 +0800 Received: from [10.173.124.160] (10.173.124.160) by kwepemq500010.china.huawei.com (7.202.194.235) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Fri, 10 Apr 2026 14:38:33 +0800 Subject: Re: [PATCH 1/2] mm/memory_failure: use bool for hugetlb indicator in try_memory_failure_hugetlb To: Ye Liu CC: Ye Liu , Naoya Horiguchi , , , Andrew Morton References: <20260407020715.2269255-1-ye.liu@linux.dev> <20260407020715.2269255-2-ye.liu@linux.dev> From: Miaohe Lin Message-ID: <0eb4a198-e80b-127d-e729-3af6f63f6d5b@huawei.com> Date: Fri, 10 Apr 2026 14:38:33 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20260407020715.2269255-2-ye.liu@linux.dev> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: kwepems200002.china.huawei.com (7.221.188.68) To kwepemq500010.china.huawei.com (7.202.194.235) 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. .