svn commit: r246422 - user/attilio/vmc-playground/sys/vm

Attilio Rao attilio at FreeBSD.org
Wed Feb 6 17:47:24 UTC 2013


Author: attilio
Date: Wed Feb  6 17:47:24 2013
New Revision: 246422
URL: http://svnweb.freebsd.org/changeset/base/246422

Log:
  Enrich comments on newly added assertions.

Modified:
  user/attilio/vmc-playground/sys/vm/vm_page.c

Modified: user/attilio/vmc-playground/sys/vm/vm_page.c
==============================================================================
--- user/attilio/vmc-playground/sys/vm/vm_page.c	Wed Feb  6 17:43:05 2013	(r246421)
+++ user/attilio/vmc-playground/sys/vm/vm_page.c	Wed Feb  6 17:47:24 2013	(r246422)
@@ -1005,6 +1005,8 @@ vm_page_rename(vm_page_t m, vm_object_t 
  *	infinity.  If the given object is backed by a vnode and it
  *	transitions from having one or more cached pages to none, the
  *	vnode's hold count is reduced. 
+ *
+ *	The object must be locked.
  */
 void
 vm_page_cache_free(vm_object_t object, vm_pindex_t start, vm_pindex_t end)
@@ -1042,7 +1044,7 @@ vm_page_cache_free(vm_object_t object, v
  *	Returns the cached page that is associated with the given
  *	object and offset.  If, however, none exists, returns NULL.
  *
- *	The free page queue must be locked.
+ *	The free page queue and object must be locked.
  */
 static inline vm_page_t
 vm_page_cache_lookup(vm_object_t object, vm_pindex_t pindex)
@@ -1082,7 +1084,7 @@ vm_page_cache_remove(vm_page_t m)
  *	empty.  Offset 'offidxstart' in the original object must
  *	correspond to offset zero in the new object.
  *
- *	The new object must be locked.
+ *	The new object and original object must be locked.
  */
 void
 vm_page_cache_transfer(vm_object_t orig_object, vm_pindex_t offidxstart,


More information about the svn-src-user mailing list