thp: remove unused vma parameter from khugepaged_alloc_page
authorAaron Tomlin <atomlin@redhat.com>
Sat, 7 Nov 2015 00:28:52 +0000 (16:28 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 7 Nov 2015 01:50:42 +0000 (17:50 -0800)
commitd6669d689f397137381fe6729293e0eba1ef09a8
tree0976e0e7bfa0490b38bd40d90dc7b9a9be535fa2
parentc62d25556be6c965dc14288e796a576e8e39a7e9
thp: remove unused vma parameter from khugepaged_alloc_page

The "vma" parameter to khugepaged_alloc_page() is unused.  It has to
remain unused or the drop read lock 'map_sem' optimisation introduce by
commit 8b1645685acf ("mm, THP: don't hold mmap_sem in khugepaged when
allocating THP") wouldn't be safe.  So let's remove it.

Signed-off-by: Aaron Tomlin <atomlin@redhat.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/huge_memory.c