aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2020-06-27 02:31:39 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2020-06-27 02:31:39 +0000
commitee06cffcd2d7940ae1ffd8e2d50704203fbfc439 (patch)
treead67c0029ed36a5f6824063a7dd2ee863f4247e3 /sys
parent4928d0276687adbd279e9a4ea33e1163d8ad9129 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/vm/vm_page.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index 22eacf423b95..08420d5da19e 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -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)