Re: [PATCH v3 06/16] fs/proc/task_mmu: refactor pagemap_pmd_range()
From: Vlastimil Babka
Date: Fri Nov 21 2025 - 12:17:21 EST
On 11/10/25 23:21, Lorenzo Stoakes wrote:
> Separate out THP logic so we can drop an indentation level and reduce the
> amount of noise in this function.
>
> We add pagemap_pmd_range_thp() for this purpose.
>
> While we're here, convert the VM_BUG_ON() to a VM_WARN_ON_ONCE() at the
> same time.
>
> No functional change intended.
>
> Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx>
Reviewed-by: Vlastimil Babka <vbabka@xxxxxxx>