sparc64: Support huge PUD case in get_user_pages
authorNitin Gupta <nitin.m.gupta@oracle.com>
Fri, 11 Aug 2017 23:46:49 +0000 (16:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Aug 2017 04:48:06 +0000 (21:48 -0700)
commit44382b0195e608732b0bed14d51b5e5f79f46471
tree44b7d9304a1e28fb31a0ae98a889481c36f48d51
parent91752a9c7b32f6a42dc4fa01d0f7f99003ca1ba6
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