summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_subr.c
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2002-12-15 05:41:56 +0000
committerAlan Cox <alc@FreeBSD.org>2002-12-15 05:41:56 +0000
commit475e8011abfcc8df7172390a6b7f3240f8042a65 (patch)
treebb988d4f185b95f920211bdab8e34890c943522d /sys/kern/vfs_subr.c
parent70a3c70ad7e0565d9a35f58d93865085e8ff780b (diff)
Notes
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r--sys/kern/vfs_subr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 240f3ce725ca..3c578d58d593 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -1171,8 +1171,10 @@ vinvalbuf(vp, flags, cred, td, slpflag, slptimeo)
* Destroy the copy in the VM cache, too.
*/
if (VOP_GETVOBJECT(vp, &object) == 0) {
+ vm_object_lock(object);
vm_object_page_remove(object, 0, 0,
(flags & V_SAVE) ? TRUE : FALSE);
+ vm_object_unlock(object);
}
#ifdef INVARIANTS