mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
There is no need to "busy" a page when the object is locked for the duration
of the operation.
This commit is contained in:
parent
9390262576
commit
4afcae9ba3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=198494
@ -906,10 +906,9 @@ tmpfs_reg_resize(struct vnode *vp, off_t newsize)
|
||||
|
||||
if (zerolen > 0) {
|
||||
m = vm_page_grab(uobj, OFF_TO_IDX(newsize),
|
||||
VM_ALLOC_NORMAL | VM_ALLOC_RETRY);
|
||||
VM_ALLOC_NOBUSY | VM_ALLOC_NORMAL | VM_ALLOC_RETRY);
|
||||
pmap_zero_page_area(m, PAGE_SIZE - zerolen,
|
||||
zerolen);
|
||||
vm_page_wakeup(m);
|
||||
}
|
||||
VM_OBJECT_UNLOCK(uobj);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user