From 4edc1f94512e1211d5b1f230b9693ca50f823a53 Mon Sep 17 00:00:00 2001 From: kib Date: Sun, 16 Nov 2008 21:57:54 +0000 Subject: Instead of forcing vn_start_write() to reset mp back to NULL for the failed calls with non-NULL vp, explicitely clear mp after failure. Tested by: stass Reviewed by: tegge PR: 123768 MFC after: 1 week --- sys/vm/vm_pageout.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/vm') diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index 380a920..046ba2a 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -944,8 +944,7 @@ rescan0: vp = object->handle; if (vp->v_type == VREG && vn_start_write(vp, &mp, V_NOWAIT) != 0) { - KASSERT(mp == NULL, - ("vm_pageout_scan: mp != NULL")); + mp = NULL; ++pageout_lock_miss; if (object->flags & OBJ_MIGHTBEDIRTY) vnodes_skipped++; -- cgit v1.1