Re: [PATCH 09/11] mm: page_vma_mapped_walk(): get vma_address_end() earlier

From: Kirill A. Shutemov
Date: Thu Jun 10 2021 - 05:39:58 EST


On Wed, Jun 09, 2021 at 11:50:23PM -0700, Hugh Dickins wrote:
> page_vma_mapped_walk() cleanup: get THP's vma_address_end() at the start,
> rather than later at next_pte. It's a little unnecessary overhead on the
> first call, but makes for a simpler loop in the following commit.
>
> Signed-off-by: Hugh Dickins <hughd@xxxxxxxxxx>
> Cc: <stable@xxxxxxxxxxxxxxx>

Acked-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>

--
Kirill A. Shutemov