|
@@ -2640,6 +2640,8 @@ int hugetlb_fault(struct mm_struct *mm, struct vm_area_struct *vma,
|
|
static DEFINE_MUTEX(hugetlb_instantiation_mutex);
|
|
static DEFINE_MUTEX(hugetlb_instantiation_mutex);
|
|
struct hstate *h = hstate_vma(vma);
|
|
struct hstate *h = hstate_vma(vma);
|
|
|
|
|
|
|
|
+ address &= huge_page_mask(h);
|
|
|
|
+
|
|
ptep = huge_pte_offset(mm, address);
|
|
ptep = huge_pte_offset(mm, address);
|
|
if (ptep) {
|
|
if (ptep) {
|
|
entry = huge_ptep_get(ptep);
|
|
entry = huge_ptep_get(ptep);
|