diff options
author | alc <alc@FreeBSD.org> | 2003-04-18 16:39:03 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2003-04-18 16:39:03 +0000 |
commit | 83fe46be1839e24062ca7d8914d86a3a2142e114 (patch) | |
tree | 6e8f373c5a75ac310653bf7c0657376203bfe6fc /sys/kern/vfs_subr.c | |
parent | b41f585c1a9bcdc3a397544aecd1fb50b476bd09 (diff) | |
download | FreeBSD-src-83fe46be1839e24062ca7d8914d86a3a2142e114.zip FreeBSD-src-83fe46be1839e24062ca7d8914d86a3a2142e114.tar.gz |
Update locking around vm_object_page_remove() to use the new macros.
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r-- | sys/kern/vfs_subr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 1ffa2ff..b2bee4e 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1181,10 +1181,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_LOCK(object); vm_object_page_remove(object, 0, 0, (flags & V_SAVE) ? TRUE : FALSE); - vm_object_unlock(object); + VM_OBJECT_UNLOCK(object); } #ifdef INVARIANTS |