thp: alter compound get_page/put_page
authorAndrea Arcangeli <aarcange@redhat.com>
Thu, 13 Jan 2011 23:46:32 +0000 (15:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 14 Jan 2011 01:32:39 +0000 (17:32 -0800)
commit9180706344487700b40da9eca5dedd3d11cb33b4
treeeb0347efe7e40adc78a271752c7382aa67875d6a
parente9da73d67729b58bba256123e2b4651e0d8a01ac
thp: alter compound get_page/put_page

Alter compound get_page/put_page to keep references on subpages too, in
order to allow __split_huge_page_refcount to split an hugepage even while
subpages have been pinned by one of the get_user_pages() variants.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Acked-by: Rik van Riel <riel@redhat.com>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/powerpc/mm/gup.c
arch/x86/mm/gup.c
include/linux/mm.h
mm/swap.c