Re: [PATCH v3 06/16] fs/proc/task_mmu: refactor pagemap_pmd_range()

Vlastimil Babka
2025-11-21T17:17:21Z

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@oracle.com>

Reviewed-by: Vlastimil Babka <vbabka@suse.cz>