svn commit: r198494 - head/sys/fs/tmpfs
Alan Cox
alc at FreeBSD.org
Mon Oct 26 18:02:06 UTC 2009
Author: alc
Date: Mon Oct 26 18:02:05 2009
New Revision: 198494
URL: http://svn.freebsd.org/changeset/base/198494
Log:
There is no need to "busy" a page when the object is locked for the duration
of the operation.
Modified:
head/sys/fs/tmpfs/tmpfs_subr.c
Modified: head/sys/fs/tmpfs/tmpfs_subr.c
==============================================================================
--- head/sys/fs/tmpfs/tmpfs_subr.c Mon Oct 26 17:42:03 2009 (r198493)
+++ head/sys/fs/tmpfs/tmpfs_subr.c Mon Oct 26 18:02:05 2009 (r198494)
@@ -906,10 +906,9 @@ tmpfs_reg_resize(struct vnode *vp, off_t
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);
More information about the svn-src-all
mailing list