From 33ab51801e1dbbaa6013226cc2dd82d7afb9d9b7 Mon Sep 17 00:00:00 2001 From: alc Date: Mon, 26 Oct 2009 18:02:05 +0000 Subject: There is no need to "busy" a page when the object is locked for the duration of the operation. --- sys/fs/tmpfs/tmpfs_subr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/fs/tmpfs') 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); -- cgit v1.1