Fix mmap(2) on ZFS after some changes in VM subsystem.
Submitted by: alc Reported by: kris (originally) and many others Tested with: fsx MFC after: 1 week
This commit is contained in:
parent
1f49b573e1
commit
2b1c6615bc
@ -346,6 +346,10 @@ again:
|
|||||||
VM_OBJECT_LOCK(obj);
|
VM_OBJECT_LOCK(obj);
|
||||||
vm_page_wakeup(m);
|
vm_page_wakeup(m);
|
||||||
} else {
|
} else {
|
||||||
|
if (__predict_false(obj->cache != NULL)) {
|
||||||
|
vm_page_cache_free(obj, OFF_TO_IDX(start),
|
||||||
|
OFF_TO_IDX(start) + 1);
|
||||||
|
}
|
||||||
dirbytes += bytes;
|
dirbytes += bytes;
|
||||||
}
|
}
|
||||||
len -= bytes;
|
len -= bytes;
|
||||||
|
@ -346,6 +346,10 @@ again:
|
|||||||
VM_OBJECT_LOCK(obj);
|
VM_OBJECT_LOCK(obj);
|
||||||
vm_page_wakeup(m);
|
vm_page_wakeup(m);
|
||||||
} else {
|
} else {
|
||||||
|
if (__predict_false(obj->cache != NULL)) {
|
||||||
|
vm_page_cache_free(obj, OFF_TO_IDX(start),
|
||||||
|
OFF_TO_IDX(start) + 1);
|
||||||
|
}
|
||||||
dirbytes += bytes;
|
dirbytes += bytes;
|
||||||
}
|
}
|
||||||
len -= bytes;
|
len -= bytes;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user