Re: [PATCHv2 02/12] mm: introduce page_vma_mapped_walk()

From: Kirill A. Shutemov
Date: Wed Jan 25 2017 - 17:43:12 EST


On Wed, Jan 25, 2017 at 09:25:28PM +0300, Kirill A. Shutemov wrote:
> The patch introduces new interface to check if a page is mapped into a vma.
> It aims to address shortcomings of page_check_address{,_transhuge}.
>
> Existing interface is not able to handle PTE-mapped THPs: it only finds
> the first PTE. The rest lefted unnoticed.
>
> page_vma_mapped_walk() iterates over all possible mapping of the page in the
> vma.
>
> Signed-off-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>

I broke it during removing inline wrapper. Here's fixed version.

-----------8<----------