diff options
author | kib <kib@FreeBSD.org> | 2008-11-16 21:57:54 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2008-11-16 21:57:54 +0000 |
commit | 4edc1f94512e1211d5b1f230b9693ca50f823a53 (patch) | |
tree | d7e67c7aae8d3f27f4ce597da4e44e6cd069b7c9 /sys/vm | |
parent | ec4c1994590580cc4d85ba6220773644b6b4f60a (diff) | |
download | FreeBSD-src-4edc1f94512e1211d5b1f230b9693ca50f823a53.zip FreeBSD-src-4edc1f94512e1211d5b1f230b9693ca50f823a53.tar.gz |
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
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_pageout.c | 3 |
1 files changed, 1 insertions, 2 deletions
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++; |