diff options
author | kib <kib@FreeBSD.org> | 2009-02-08 19:44:50 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2009-02-08 19:44:50 +0000 |
commit | 0125db577208d7c1d73311409636303c7a0ed019 (patch) | |
tree | 539552fe23c2d7a1ef6e7fa08f64fb78dca104a6 /sys/vm | |
parent | 7a52ad11f4d64ed7708bcd7e0b7b336d89b2eb2d (diff) | |
download | FreeBSD-src-0125db577208d7c1d73311409636303c7a0ed019.zip FreeBSD-src-0125db577208d7c1d73311409636303c7a0ed019.tar.gz |
Assert that vnode is exclusively locked when its vm object is resized.
Reviewed by: tegge
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vnode_pager.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c index 4721646..641d916 100644 --- a/sys/vm/vnode_pager.c +++ b/sys/vm/vnode_pager.c @@ -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) { /* |