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

From: Kirill A. Shutemov
Date: Wed Jan 25 2017 - 15:38:40 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>

Please ignore, I screwed it up.

I'll repost once get it fixed and tested.

--
Kirill A. Shutemov