summaryrefslogtreecommitdiff
path: root/sys/uvm/uvmexp.h
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2021-03-04 09:00:04 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2021-03-04 09:00:04 +0000
commit37b9299798a2191b795af5df5e914fc9f722cd55 (patch)
tree3dc9d8667acfde0eee75049207c5388bd9fd9934 /sys/uvm/uvmexp.h
parentf09c45ba7cb505684038d40e812a897c865feb22 (diff)
Modify `uvmexp.swpgonly' atomically, required for uvm_fault() w/o KERNEL_LOCK()
ok kettenis@
Diffstat (limited to 'sys/uvm/uvmexp.h')
-rw-r--r--sys/uvm/uvmexp.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/uvm/uvmexp.h b/sys/uvm/uvmexp.h
index 0e3129e3513..90533813dff 100644
--- a/sys/uvm/uvmexp.h
+++ b/sys/uvm/uvmexp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvmexp.h,v 1.8 2020/12/28 14:01:23 mpi Exp $ */
+/* $OpenBSD: uvmexp.h,v 1.9 2021/03/04 09:00:03 mpi Exp $ */
#ifndef _UVM_UVMEXP_
#define _UVM_UVMEXP_
@@ -41,6 +41,7 @@
* other than the vm system.
*
* Locks used to protect struct members in this file:
+ * a atomic operations
* I immutable after creation
* K kernel lock
* F uvm_lock_fpageq
@@ -82,7 +83,7 @@ struct uvmexp {
int nswapdev; /* number of configured swap devices in system */
int swpages; /* [K] number of PAGE_SIZE'ed swap pages */
int swpginuse; /* number of swap pages in use */
- int swpgonly; /* [K] number of swap pages in use, not also in RAM */
+ int swpgonly; /* [a] number of swap pages in use, not also in RAM */
int nswget; /* number of swap pages moved from disk to RAM */
int nanon; /* XXX number total of anon's in system */
int unused05; /* formerly nanonneeded */