From: David S. Miller Date: Fri, 25 Apr 2014 17:21:12 +0000 (-0700) Subject: sparc64: Fix bugs in get_user_pages_fast() wrt. THP. X-Git-Tag: omap-for-v3.16/fixes-against-rc1~211^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04df419de34104d8818b8c5cffaa062fa36d20ea;p=pandora-kernel.git sparc64: Fix bugs in get_user_pages_fast() wrt. THP. The large PMD path needs to check _PAGE_VALID not _PAGE_PRESENT, to decide if it needs to bail and return 0. pmd_large() should therefore just check _PAGE_PMD_HUGE. Calls to gup_huge_pmd() are guarded with a check of pmd_large(), so we just need to add a valid bit check. Signed-off-by: David S. Miller --- Reading git-diff-tree failed