diff options
| author | Alan Cox <alc@FreeBSD.org> | 2003-05-01 03:51:05 +0000 |
|---|---|---|
| committer | Alan Cox <alc@FreeBSD.org> | 2003-05-01 03:51:05 +0000 |
| commit | ab7b0ae578c4ced40414f23fa55badeea27a350d (patch) | |
| tree | f0cfa1c721d786834a1756ef826b8ddcf4ab8680 /sys | |
| parent | cda4b241e26635bc7e612a4b658023c91e17c0c8 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/vfs_default.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c index 7e3f295cc37a..cef1a0f8460f 100644 --- a/sys/kern/vfs_default.c +++ b/sys/kern/vfs_default.c @@ -605,7 +605,9 @@ retry: * Dereference the reference we just created. This assumes * that the object is associated with the vp. */ + VM_OBJECT_LOCK(object); object->ref_count--; + VM_OBJECT_UNLOCK(object); vrele(vp); } else { if (object->flags & OBJ_DEAD) { |
