sparc64: Support huge PUD case in get_user_pages
authorNitin Gupta <nitin.m.gupta@oracle.com>
Sat, 29 Jul 2017 18:42:17 +0000 (11:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Aug 2017 05:11:11 +0000 (22:11 -0700)
commitc9a844c5100a01c024b59401e5963ff65d6b5f31
tree27154bb7e9ac6e7ef248abb3c9cbbda37bcb9994
parentcb8c65ccff7f77d0285f1b126c72d37b2572c865
sparc64: Support huge PUD case in get_user_pages

get_user_pages() is used to do direct IO. It already
handles the case where the address range is backed
by PMD huge pages. This patch now adds the case where
the range could be backed by PUD huge pages.

Signed-off-by: Nitin Gupta <nitin.m.gupta@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/pgtable_64.h
arch/sparc/mm/gup.c