git: dcb80621bbf9 - main - vm_object.h: tweak OBJ_ONEMAPPING comment even more
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 07 Jan 2026 23:57:18 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=dcb80621bbf9a733b91f1a011af873318fac2709
commit dcb80621bbf9a733b91f1a011af873318fac2709
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-01-07 06:25:46 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-01-07 23:56:33 +0000
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
---
sys/vm/vm_object.h | 5 ++---
1 file 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 */