diff options
| author | Tor Egge <tegge@FreeBSD.org> | 2006-02-17 18:22:19 +0000 |
|---|---|---|
| committer | Tor Egge <tegge@FreeBSD.org> | 2006-02-17 18:22:19 +0000 |
| commit | db27dcc0f0f5d432e8de03d726b02faae305d7c8 (patch) | |
| tree | 21016d1a6f86de3a3442b5bbcc479ba8bce3ac49 /sys | |
| parent | 1493e8838e68e44f955ecbb6e50c3fc2dcb9b8eb (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/vm/vm_pageout.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index f5efd9ff3c94..b5abcebab38d 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -931,8 +931,14 @@ rescan0: if (object->type == OBJT_VNODE) { vp = object->handle; mp = NULL; - if (vp->v_type == VREG) - vn_start_write(vp, &mp, V_NOWAIT); + if (vp->v_type == VREG && + vn_start_write(vp, &mp, V_NOWAIT) != 0) { + ++pageout_lock_miss; + if (object->flags & OBJ_MIGHTBEDIRTY) + vnodes_skipped++; + VM_OBJECT_UNLOCK(object); + continue; + } vm_page_unlock_queues(); VI_LOCK(vp); VM_OBJECT_UNLOCK(object); |
