diff options
author | alc <alc@FreeBSD.org> | 2009-10-26 18:02:05 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2009-10-26 18:02:05 +0000 |
commit | 33ab51801e1dbbaa6013226cc2dd82d7afb9d9b7 (patch) | |
tree | 17e34b7a4193096de653043ca7693029e790a411 /sys/fs/tmpfs | |
parent | 81dc521c47f759ff1f59aebb500df6b2e163630a (diff) | |
download | FreeBSD-src-33ab51801e1dbbaa6013226cc2dd82d7afb9d9b7.zip FreeBSD-src-33ab51801e1dbbaa6013226cc2dd82d7afb9d9b7.tar.gz |
There is no need to "busy" a page when the object is locked for the duration
of the operation.
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 8dc8338..5b13e64 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); |