aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2026-01-07 06:25:46 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2026-01-07 23:56:33 +0000
commitdcb80621bbf9a733b91f1a011af873318fac2709 (patch)
treec964bdf8e5fc9855206ed0690c9d67d280dba549
parent6c0bcd15e4782ff2e23119a37396d693d09c695d (diff)
vm_object.h: tweak OBJ_ONEMAPPING comment even more
The formulation that pages are allowed to have at most one mapping is not quite clear. Nothing prevents pages from having more than one mapping, but the flag must be cleared then. Reviewed by: alc, markj Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential revision: https://reviews.freebsd.org/D54570
-rw-r--r--sys/vm/vm_object.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h
index cd1d10d4fb89..ca88adc12c24 100644
--- a/sys/vm/vm_object.h
+++ b/sys/vm/vm_object.h
@@ -197,9 +197,8 @@ struct vm_object {
#define OBJ_SPLIT 0x00000400 /* object is being split */
#define OBJ_COLLAPSING 0x00000800 /* Parent of collapse. */
#define OBJ_COLORED 0x00001000 /* pg_color is defined */
-#define OBJ_ONEMAPPING 0x00002000 /* Each page is allowed to have at most
- one managed mapping, all in the same
- vm_map */
+#define OBJ_ONEMAPPING 0x00002000 /* Each page has at most one managed
+ mapping, all in the same vm_map */
#define OBJ_PAGERPRIV1 0x00004000 /* Pager private */
#define OBJ_PAGERPRIV2 0x00008000 /* Pager private */
#define OBJ_SYSVSHM 0x00010000 /* SysV SHM */