diff options
author | Alan Cox <alc@FreeBSD.org> | 2009-10-26 18:02:05 +0000 |
---|---|---|
committer | Alan Cox <alc@FreeBSD.org> | 2009-10-26 18:02:05 +0000 |
commit | 4afcae9ba3366d5f4c2ab5e2f8676cd8236eacb1 (patch) | |
tree | 17e34b7a4193096de653043ca7693029e790a411 /sys/fs/tmpfs | |
parent | 93902625760d9365f14ad97b0cd705de8a71a43a (diff) | |
download | src-4afcae9ba3366d5f4c2ab5e2f8676cd8236eacb1.tar.gz src-4afcae9ba3366d5f4c2ab5e2f8676cd8236eacb1.zip |
There is no need to "busy" a page when the object is locked for the duration
of the operation.
Notes
Notes:
svn path=/head/; revision=198494
Diffstat (limited to 'sys/fs/tmpfs')
-rw-r--r-- | sys/fs/tmpfs/tmpfs_subr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/fs/tmpfs/tmpfs_subr.c b/sys/fs/tmpfs/tmpfs_subr.c index 8dc833816f99..5b13e640948b 100644 --- a/sys/fs/tmpfs/tmpfs_subr.c +++ b/sys/fs/tmpfs/tmpfs_subr.c @@ -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); |