svn commit: r349703 - stable/12/sys/vm
Mark Johnston
markj at FreeBSD.org
Wed Jul 3 20:18:50 UTC 2019
Author: markj
Date: Wed Jul 3 20:18:49 2019
New Revision: 349703
URL: https://svnweb.freebsd.org/changeset/base/349703
Log:
MFC r349218:
Group vm_page_activate()'s definition with other related functions.
Modified:
stable/12/sys/vm/vm_page.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/vm/vm_page.c
==============================================================================
--- stable/12/sys/vm/vm_page.c Wed Jul 3 20:18:05 2019 (r349702)
+++ stable/12/sys/vm/vm_page.c Wed Jul 3 20:18:49 2019 (r349703)
@@ -3372,35 +3372,6 @@ vm_page_requeue(vm_page_t m)
}
/*
- * vm_page_activate:
- *
- * Put the specified page on the active list (if appropriate).
- * Ensure that act_count is at least ACT_INIT but do not otherwise
- * mess with it.
- *
- * The page must be locked.
- */
-void
-vm_page_activate(vm_page_t m)
-{
-
- vm_page_assert_locked(m);
-
- if (vm_page_wired(m) || (m->oflags & VPO_UNMANAGED) != 0)
- return;
- if (vm_page_queue(m) == PQ_ACTIVE) {
- if (m->act_count < ACT_INIT)
- m->act_count = ACT_INIT;
- return;
- }
-
- vm_page_dequeue(m);
- if (m->act_count < ACT_INIT)
- m->act_count = ACT_INIT;
- vm_page_enqueue(m, PQ_ACTIVE);
-}
-
-/*
* vm_page_free_prep:
*
* Prepares the given page to be put on the free list,
@@ -3649,6 +3620,35 @@ vm_page_unwire_noq(vm_page_t m)
return (true);
} else
return (false);
+}
+
+/*
+ * vm_page_activate:
+ *
+ * Put the specified page on the active list (if appropriate).
+ * Ensure that act_count is at least ACT_INIT but do not otherwise
+ * mess with it.
+ *
+ * The page must be locked.
+ */
+void
+vm_page_activate(vm_page_t m)
+{
+
+ vm_page_assert_locked(m);
+
+ if (vm_page_wired(m) || (m->oflags & VPO_UNMANAGED) != 0)
+ return;
+ if (vm_page_queue(m) == PQ_ACTIVE) {
+ if (m->act_count < ACT_INIT)
+ m->act_count = ACT_INIT;
+ return;
+ }
+
+ vm_page_dequeue(m);
+ if (m->act_count < ACT_INIT)
+ m->act_count = ACT_INIT;
+ vm_page_enqueue(m, PQ_ACTIVE);
}
/*
More information about the svn-src-all
mailing list