|
@@ -2564,8 +2564,7 @@ retry_avoidcopy:
|
|
|
* at the time of fork() could consume its reserves on COW instead
|
|
* at the time of fork() could consume its reserves on COW instead
|
|
|
* of the full address range.
|
|
* of the full address range.
|
|
|
*/
|
|
*/
|
|
|
- if (!(vma->vm_flags & VM_MAYSHARE) &&
|
|
|
|
|
- is_vma_resv_set(vma, HPAGE_RESV_OWNER) &&
|
|
|
|
|
|
|
+ if (is_vma_resv_set(vma, HPAGE_RESV_OWNER) &&
|
|
|
old_page != pagecache_page)
|
|
old_page != pagecache_page)
|
|
|
outside_reserve = 1;
|
|
outside_reserve = 1;
|
|
|
|
|
|