Re: [PATCH 8/9] mm: directly use __mlock_vma_pages_range() in find_extend_vma()

2013-01-02 Thread Rik van Riel
On 12/20/2012 07:49 PM, Michel Lespinasse wrote: In find_extend_vma(), we don't need mlock_vma_pages_range() to verify the vma type - we know we're working with a stack. So, we can call directly into __mlock_vma_pages_range(), and remove the last make_pages_present() call site. Note that we

Re: [PATCH 8/9] mm: directly use __mlock_vma_pages_range() in find_extend_vma()

2013-01-02 Thread Rik van Riel
On 12/20/2012 07:49 PM, Michel Lespinasse wrote: In find_extend_vma(), we don't need mlock_vma_pages_range() to verify the vma type - we know we're working with a stack. So, we can call directly into __mlock_vma_pages_range(), and remove the last make_pages_present() call site. Note that we

[PATCH 8/9] mm: directly use __mlock_vma_pages_range() in find_extend_vma()

2012-12-20 Thread Michel Lespinasse
In find_extend_vma(), we don't need mlock_vma_pages_range() to verify the vma type - we know we're working with a stack. So, we can call directly into __mlock_vma_pages_range(), and remove the last make_pages_present() call site. Note that we don't use mm_populate() here, so we can't release the

[PATCH 8/9] mm: directly use __mlock_vma_pages_range() in find_extend_vma()

2012-12-20 Thread Michel Lespinasse
In find_extend_vma(), we don't need mlock_vma_pages_range() to verify the vma type - we know we're working with a stack. So, we can call directly into __mlock_vma_pages_range(), and remove the last make_pages_present() call site. Note that we don't use mm_populate() here, so we can't release the