summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2009-02-08 20:52:09 +0000
committerkib <kib@FreeBSD.org>2009-02-08 20:52:09 +0000
commitfc6cc1f763e313135ec799aeeca03620a61bfb06 (patch)
tree1d7875c3e91febc2d20aaa888911ab4433243c43 /sys/vm
parentae7c4cfa1196d4f42be0f573c827a5dd2d385af9 (diff)
downloadFreeBSD-src-fc6cc1f763e313135ec799aeeca03620a61bfb06.zip
FreeBSD-src-fc6cc1f763e313135ec799aeeca03620a61bfb06.tar.gz
Improve comments, correct English.
Submitted by: alc
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_map.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index 43dad2b..dc45ff4 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -1355,13 +1355,13 @@ vm_map_simplify_entry(vm_map_t map, vm_map_entry_t entry)
vm_map_entry_resize_free(map, entry->prev);
/*
- * If the backing object is the vnode object,
- * vm_object_deallocate() results in a call to
- * vrele(). Because the reference to the
- * object is not last, vrele() does not lock
- * the vnode, and map lock can be kept without
- * causing vnode lock to be taken after the
- * map lock.
+ * If the backing object is a vnode object,
+ * vm_object_deallocate() calls vrele().
+ * However, vrele() does not lock the vnode
+ * because the vnode has additional
+ * references. Thus, the map lock can be kept
+ * without causing a lock-order reversal with
+ * the vnode lock.
*/
if (prev->object.vm_object)
vm_object_deallocate(prev->object.vm_object);
@@ -2778,7 +2778,7 @@ vmspace_fork(struct vmspace *vm1)
/*
* As in vm_map_simplify_entry(), the
- * vnode lock may not be acquired in
+ * vnode lock will not be acquired in
* this call to vm_object_deallocate().
*/
vm_object_deallocate(object);
OpenPOWER on IntegriCloud