aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vm_page.h
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2002-07-13 20:55:21 +0000
committerAlan Cox <alc@FreeBSD.org>2002-07-13 20:55:21 +0000
commit1f545269529494c71ac10258cd3de0d5bcfdea2c (patch)
tree112c6c5d9bec2f3e71756f53a17e33836ebc0002 /sys/vm/vm_page.h
parent5123aaef42a837028d9082c7de05d697a51044c3 (diff)
downloadsrc-1f545269529494c71ac10258cd3de0d5bcfdea2c.tar.gz
src-1f545269529494c71ac10258cd3de0d5bcfdea2c.zip
o Complete the locking of page queue accesses by vm_page_unwire().
o Assert that the page queues lock is held in vm_page_unwire(). o Make vm_page_lock_queues() and vm_page_unlock_queues() visible to kernel loadable modules.
Notes
Notes: svn path=/head/; revision=99927
Diffstat (limited to 'sys/vm/vm_page.h')
-rw-r--r--sys/vm/vm_page.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h
index 066fd8d5fb1b..17afdb84114a 100644
--- a/sys/vm/vm_page.h
+++ b/sys/vm/vm_page.h
@@ -216,12 +216,8 @@ struct vpgqueues {
};
extern struct vpgqueues vm_page_queues[PQ_COUNT];
-extern struct mtx vm_page_queue_mtx;
extern struct mtx vm_page_queue_free_mtx;
-#define vm_page_lock_queues() mtx_lock(&vm_page_queue_mtx)
-#define vm_page_unlock_queues() mtx_unlock(&vm_page_queue_mtx)
-
#endif /* !defined(KLD_MODULE) */
/*
@@ -299,6 +295,9 @@ extern long first_page; /* first physical page number */
#define PHYS_TO_VM_PAGE(pa) \
(&vm_page_array[atop(pa) - first_page ])
+extern struct mtx vm_page_queue_mtx;
+#define vm_page_lock_queues() mtx_lock(&vm_page_queue_mtx)
+#define vm_page_unlock_queues() mtx_unlock(&vm_page_queue_mtx)
#if PAGE_SIZE == 4096
#define VM_PAGE_BITS_ALL 0xff