summaryrefslogtreecommitdiff
path: root/sys/vm/vm_obj.c
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-05-25 17:51:54 -0400
committerIan Moffett <ian@osmora.org>2024-05-25 17:51:54 -0400
commitbd93d4966c5d78cb4ee2ab84d32890ea1ca77d53 (patch)
treebb8dc5e2a967679f288c3deed81a56af9a60f0c6 /sys/vm/vm_obj.c
parent32f395140a653e5c7e3e114faeb7314e223f0eea (diff)
kernel: vm: Make vmobj ref start at zero
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/vm/vm_obj.c')
-rw-r--r--sys/vm/vm_obj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_obj.c b/sys/vm/vm_obj.c
index 8f34ff3..6dbe777 100644
--- a/sys/vm/vm_obj.c
+++ b/sys/vm/vm_obj.c
@@ -61,7 +61,7 @@ vm_obj_init(struct vm_object **res, struct vnode *vnode)
memset(obj, 0, sizeof(struct vm_object));
obj->vnode = vnode;
- obj->ref = 1;
+ obj->ref = 0;
vm_set_pgops(obj, vnode);
*res = obj;