Assert that vnode is exclusively locked when its vm object is resized.

Reviewed by:	tegge
This commit is contained in:
Konstantin Belousov 2009-02-08 19:44:50 +00:00
parent 9f6acfd1a8
commit 705f0a82c2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=188321

View File

@ -367,6 +367,7 @@ vnode_pager_setsize(vp, nsize)
if ((object = vp->v_object) == NULL)
return;
ASSERT_VOP_ELOCKED(vp, "vnode_pager_setsize and not locked vnode");
VM_OBJECT_LOCK(object);
if (nsize == object->un_pager.vnp.vnp_size) {
/*