sparc64: Fix mapping of 64k pages with MAP_FIXED
authorNitin Gupta <nitin.m.gupta@oracle.com>
Mon, 15 May 2017 23:28:17 +0000 (16:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 May 2017 19:07:01 +0000 (12:07 -0700)
commitb6c41cb050d5debc7e4eaa0a81cbdbad72588891
treef1aa480e1fe3c3c41e610791c660c99a9bbeedb6
parentb23afd384801711ab6dbccd259cc14cb09a1dcaf
sparc64: Fix mapping of 64k pages with MAP_FIXED

An incorrect huge page alignment check caused
mmap failure for 64K pages when MAP_FIXED is used
with address not aligned to HPAGE_SIZE.

Orabug: 25885991

Fixes: dcd1912d21a0 ("sparc64: Add 64K page size support")
Signed-off-by: Nitin Gupta <nitin.m.gupta@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/hugetlb.h