diff options
author | alc <alc@FreeBSD.org> | 2002-12-15 05:41:56 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2002-12-15 05:41:56 +0000 |
commit | 6be448f26468f28f11e6cc26927f2108360832cf (patch) | |
tree | bb988d4f185b95f920211bdab8e34890c943522d /sys/vm | |
parent | fdf35b6cdb02da94956ac62c984a745d410c4db2 (diff) | |
download | FreeBSD-src-6be448f26468f28f11e6cc26927f2108360832cf.zip FreeBSD-src-6be448f26468f28f11e6cc26927f2108360832cf.tar.gz |
Perform vm_object_lock() and vm_object_unlock() around
vm_object_page_remove().
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vnode_pager.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c index 3a8d8bd..cf98090 100644 --- a/sys/vm/vnode_pager.c +++ b/sys/vm/vnode_pager.c @@ -311,8 +311,10 @@ vnode_pager_setsize(vp, nsize) vm_freeze_copyopts(object, OFF_TO_IDX(nsize), object->size); #endif if (nobjsize < object->size) { + vm_object_lock(object); vm_object_page_remove(object, nobjsize, object->size, FALSE); + vm_object_unlock(object); } /* * this gets rid of garbage at the end of a page that is now |