Messages in this thread |  | | Subject | Re: [PATCH 1/2] mm/memory_failure: use bool for hugetlb indicator in try_memory_failure_hugetlb | | From | Miaohe Lin <> | | Date | Fri, 10 Apr 2026 14:38:33 +0800 |
| |
On 2026/4/7 10:07, Ye Liu wrote: > From: Ye Liu <liuye@kylinos.cn> > > 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 <liuye@kylinos.cn>
Acked-by: Miaohe Lin <linmiaohe@huawei.com>
Thanks. .
|  |