Re: [PATCH] mm: document the vma parameter of clear_young_dirty_ptes

From: David Hildenbrand (Arm)

Date: Sun Nov 29 2026 - 03:53:34 EST


On 11/29/26 02:41, Nikolai Dokutovich wrote:
> The function takes a vma and obtains the mm from it. The kernel-doc
> still documents an @mm parameter that the function does not have.
>
> Signed-off-by: Nikolai Dokutovich <ndokutovich@xxxxxxxxx>
> ---
> include/linux/pgtable.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h
> index 66d369870a74..c8932dfea8cf 100644
> --- a/include/linux/pgtable.h
> +++ b/include/linux/pgtable.h
> @@ -658,7 +658,7 @@ static inline pte_t ptep_get_and_clear(struct mm_struct *mm,
> /**
> * clear_young_dirty_ptes - Mark PTEs that map consecutive pages of the
> * same folio as old/clean.
> - * @mm: Address space the pages are mapped into.
> + * @vma: VMA containing the mapped pages.
> * @addr: Address the first page is mapped at.
> * @ptep: Page table pointer for the first entry.
> * @nr: Number of entries to mark old/clean.

Reviewed-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>

I'll pick this up soonish.

--
Cheers,

David