Author: kib
Date: Sat Jun 27 02:31:39 2020
New Revision: 362670
URL: https://svnweb.freebsd.org/changeset/base/362670

Log:
  vm_page_free_prep(): correct description of the required page and object 
state.
  
  Reviewed by:  markj
  Sponsored by: The FreeBSD Foundation
  Differential revision:        https://reviews.freebsd.org/D25482

Modified:
  head/sys/vm/vm_page.c

Modified: head/sys/vm/vm_page.c
==============================================================================
--- head/sys/vm/vm_page.c       Sat Jun 27 02:17:04 2020        (r362669)
+++ head/sys/vm/vm_page.c       Sat Jun 27 02:31:39 2020        (r362670)
@@ -3666,8 +3666,9 @@ vm_page_enqueue(vm_page_t m, uint8_t queue)
  *     disassociating it from any VM object. The caller may return
  *     the page to the free list only if this function returns true.
  *
- *     The object must be locked.  The page must be locked if it is
- *     managed.
+ *     The object, if it exists, must be locked, and then the page must
+ *     be xbusy.  Otherwise the page must be not busied.  A managed
+ *     page must be unmapped.
  */
 static bool
 vm_page_free_prep(vm_page_t m)
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to