Re: [PATCH 4/4] mm: move mm_populate()-related code to mm/gup.c

David Rientjes
2015-02-11T20:00:17Z

On Wed, 11 Feb 2015, Kirill A. Shutemov wrote:

> It's odd that we have populate_vma_page_range() and __mm_populate() in
> mm/mlock.c. It's implementation of generic memory population and
> mlocking is one of possible side effect, if VM_LOCKED is set.
>
> __get_user_pages() is core of the implementation. Let's move the code
> mm/gup.c.
>
> Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>

Acked-by: David Rientjes <rientjes@google.com>

Nice cleanup!