]> Git Repo - linux.git/commit
mm: directly use __mlock_vma_pages_range() in find_extend_vma()
authorMichel Lespinasse <[email protected]>
Sat, 23 Feb 2013 00:32:44 +0000 (16:32 -0800)
committerLinus Torvalds <[email protected]>
Sun, 24 Feb 2013 01:50:11 +0000 (17:50 -0800)
commitcea10a19b7972a1954c4a2d05a7de8db48b444fb
tree694b3c906259cfbfc7b7cb1b0eb507ecf0d1d63c
parentc22c0d6344c362b1dde5d8e160d3d07536aca120
mm: directly use __mlock_vma_pages_range() in find_extend_vma()

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
mmap_sem while allocating new stack pages.  This is deemed acceptable,
because the stack vmas grow by a bounded number of pages at a time, and
these are anon pages so we don't have to read from disk to populate
them.

Signed-off-by: Michel Lespinasse <[email protected]>
Acked-by: Rik van Riel <[email protected]>
Tested-by: Andy Lutomirski <[email protected]>
Cc: Greg Ungerer <[email protected]>
Cc: David Howells <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/mm.h
mm/internal.h
mm/memory.c
mm/mlock.c
mm/mmap.c
This page took 0.054834 seconds and 4 git commands to generate.