Re: [PATCH 3/6] hugetlb: make hugetlb_fault_mutex_hash() take PAGE_SIZE index

jane.chu
2026-04-10T17:51:41Z

On 4/10/2026 4:24 AM, Usama Arif wrote:
> On Thu, 9 Apr 2026 17:41:54 -0600 Jane Chu <jane.chu@oracle.com> wrote:
>
[..]

>> @@ -5664,6 +5665,10 @@ static inline vm_fault_t hugetlb_handle_userfault(struct vm_fault *vmf,
>> unsigned long reason)
>> {
>> u32 hash;
>> + pgoff_t index;
>> +
>> + index = linear_page_index((const struct vm_area_struct *)vmf, vmf->address);
>
> This is supposed to be linear_page_index(vmf->vma, vmf->address), right?
>
>

Indeed, sysbot also complained.
Will fix soon.

Thanks a lot!
-jane