From: Chen, Kenneth W Date: Fri, 31 Mar 2006 10:29:57 +0000 (-0800) Subject: [PATCH] fix extra page ref count in follow_hugetlb_page X-Git-Tag: v2.6.17-rc1~126 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6692183ac1d8f4a4e4015f9ce9acc2514618e0b;p=pandora-kernel.git [PATCH] fix extra page ref count in follow_hugetlb_page git-commit: d5d4b0aa4e1430d73050babba999365593bdb9d2 "[PATCH] optimize follow_hugetlb_page" breaks mlock on hugepage areas. I mis-interpret pages argument and made get_page() unconditional. It should only get a ref count when "pages" argument is non-null. Credit goes to Adam Litke who spotted the bug. Signed-off-by: Ken Chen Acked-by: Adam Litke Cc: David Gibson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed