Commit 4e4da02c authored by Yanmin Zhang's avatar Yanmin Zhang Committed by David Mosberger

[PATCH] ia64: fix free_huge_page() call in hugetlb_prefault()

In base kernel 2.6.7, there is bug in function hugetlb_prefault().  The
call to free_huge_page() is incorrect and should be replaced with a call
to page_cache_release().
Signed-off-by: default avatarDavid Mosberger <davidm@hpl.hp.com>
parent 5752ba41
...@@ -297,7 +297,7 @@ int hugetlb_prefault(struct address_space *mapping, struct vm_area_struct *vma) ...@@ -297,7 +297,7 @@ int hugetlb_prefault(struct address_space *mapping, struct vm_area_struct *vma)
unlock_page(page); unlock_page(page);
} else { } else {
hugetlb_put_quota(mapping); hugetlb_put_quota(mapping);
free_huge_page(page); page_cache_release(page);
goto out; goto out;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment