vm_object.c (19efd8a5a834ffd7af7ed6cddab389ae8417181a) vm_object.c (411455a8fbcfbb51e60fb5f5d4a02d6e76c0a88c)
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * The Mach Operating System project at Carnegie-Mellon University.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 457 unchanged lines hidden (view full) ---

466 struct vnode *vp = (struct vnode *) object->handle;
467
468 VM_OBJECT_ASSERT_WLOCKED(object);
469 KASSERT(object->type == OBJT_VNODE,
470 ("vm_object_vndeallocate: not a vnode object"));
471 KASSERT(vp != NULL, ("vm_object_vndeallocate: missing vp"));
472#ifdef INVARIANTS
473 if (object->ref_count == 0) {
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * The Mach Operating System project at Carnegie-Mellon University.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 457 unchanged lines hidden (view full) ---

466 struct vnode *vp = (struct vnode *) object->handle;
467
468 VM_OBJECT_ASSERT_WLOCKED(object);
469 KASSERT(object->type == OBJT_VNODE,
470 ("vm_object_vndeallocate: not a vnode object"));
471 KASSERT(vp != NULL, ("vm_object_vndeallocate: missing vp"));
472#ifdef INVARIANTS
473 if (object->ref_count == 0) {
474 vprint("vm_object_vndeallocate", vp);
474 vn_printf(vp, "vm_object_vndeallocate ");
475 panic("vm_object_vndeallocate: bad object reference count");
476 }
477#endif
478
479 if (!umtx_shm_vnobj_persistent && object->ref_count == 1)
480 umtx_shm_object_terminated(object);
481
482 /*

--- 2157 unchanged lines hidden ---
475 panic("vm_object_vndeallocate: bad object reference count");
476 }
477#endif
478
479 if (!umtx_shm_vnobj_persistent && object->ref_count == 1)
480 umtx_shm_object_terminated(object);
481
482 /*

--- 2157 unchanged lines hidden ---