|
@@ -2738,7 +2738,8 @@ int hugetlb_fault(struct mm_struct *mm, struct vm_area_struct *vma,
|
|
|
unlock_page(pagecache_page);
|
|
unlock_page(pagecache_page);
|
|
|
put_page(pagecache_page);
|
|
put_page(pagecache_page);
|
|
|
}
|
|
}
|
|
|
- unlock_page(page);
|
|
|
|
|
|
|
+ if (page != pagecache_page)
|
|
|
|
|
+ unlock_page(page);
|
|
|
|
|
|
|
|
out_mutex:
|
|
out_mutex:
|
|
|
mutex_unlock(&hugetlb_instantiation_mutex);
|
|
mutex_unlock(&hugetlb_instantiation_mutex);
|