]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix the assertions for the state of the object under the map entry
authorKonstantin Belousov <kib@FreeBSD.org>
Tue, 9 Apr 2013 10:04:10 +0000 (10:04 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Tue, 9 Apr 2013 10:04:10 +0000 (10:04 +0000)
commitb9781cf6504d3e3e43109b33d2a90e92d85fe764
tree4e73314993b71443dcdd41f687ed8bfceb02d9c0
parent4a21e86ec135d48a860fb8609cae2f81b359a951
Fix the assertions for the state of the object under the map entry
with the MAP_ENTRY_VN_WRITECNT flag:
- Move the assertion that verifies the state of the v_writecount and
  vnp.writecount, under the block where the object is locked.
- Check that the object type is OBJT_VNODE before asserting.

Reported by: avg
Reviewed by: alc
MFC after: 1 week
sys/vm/vm_map.c