diff options
author | Ian Moffett <ian@osmora.org> | 2024-05-25 17:51:54 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-05-25 17:51:54 -0400 |
commit | bd93d4966c5d78cb4ee2ab84d32890ea1ca77d53 (patch) | |
tree | bb8dc5e2a967679f288c3deed81a56af9a60f0c6 /sys/vm/vm_obj.c | |
parent | 32f395140a653e5c7e3e114faeb7314e223f0eea (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.c | 2 |
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; |