arm64: hugetlb: Handle swap entries in huge_pte_offset() for contiguous hugepages
authorPunit Agrawal <punit.agrawal@arm.com>
Tue, 22 Aug 2017 10:42:45 +0000 (11:42 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 22 Aug 2017 14:57:02 +0000 (15:57 +0100)
commit30f3ac00ad2f822937839c95cbb22ce483190c4c
treeafcbfc8b6a2d9743b9367cc79c38259e9be609d3
parentd8bdcff2876424d44d08a4d16a54fee518f9d5b8
arm64: hugetlb: Handle swap entries in huge_pte_offset() for contiguous hugepages

huge_pte_offset() was updated to correctly handle swap entries for
hugepages. With the addition of the size parameter, it is now possible
to disambiguate whether the request is for a regular hugepage or a
contiguous hugepage.

Fix huge_pte_offset() for contiguous hugepages by using the size to find
the correct page table entry.

Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
Cc: David Woods <dwoods@mellanox.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/hugetlbpage.c