]> git.neil.brown.name Git - history.git/commit
[PATCH] Fix bogus get_page() calls in hugepage code
authorAndrew Morton <akpm@osdl.org>
Sat, 17 Apr 2004 10:29:12 +0000 (03:29 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 17 Apr 2004 10:29:12 +0000 (03:29 -0700)
commit485583e1488ed55b3ee2d52e4ef238ae647966d2
treebcb3b710612ca1f73ca3ed8adc9e30ff7f0aad72
parent9c59105ecf560ff59d4b923928f0e0ef4b82d05d
[PATCH] Fix bogus get_page() calls in hugepage code

From: David Gibson <david@gibson.dropbear.id.au>

Some versions of follow_huge_addr() and follow_huge_pmd() are doing a
get_page() on the target page.  They shouldn't: follow_page() returns an
unpinned page and it is the caller's responsibility to pin the page (if
desired) before dropping page_table_lock.
arch/i386/mm/hugetlbpage.c
arch/ia64/mm/hugetlbpage.c
arch/ppc64/mm/hugetlbpage.c