summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/getutxent.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2010-01-17 21:26:14 +0000
committerkib <kib@FreeBSD.org>2010-01-17 21:26:14 +0000
commitea1469181ddbe4bbb08569416a314290534b1d7a (patch)
tree0248bf4f95ebc48e26e1d147c3ecbb9c5faf148a /lib/libc/gen/getutxent.c
parent1c4578d2239497e62b1656eb3cc8b6a85b145fad (diff)
downloadFreeBSD-src-ea1469181ddbe4bbb08569416a314290534b1d7a.zip
FreeBSD-src-ea1469181ddbe4bbb08569416a314290534b1d7a.tar.gz
When a vnode-backed vm object is referenced, it increments the vnode
reference count, and decrements it on dereference. If referenced object is deallocated, object type is reset to OBJT_DEAD. Consequently, all vnode references that are owned by object references are never released. vunref() the vnode in vm object deallocation code for OBJT_VNODE appropriate number of times to prevent leak. Add an assertion to the vm_pageout() to make sure that we never get reference on the vnode but then do not execute code to release it. In collaboration with: pho Reviewed by: alc MFC after: 3 weeks
Diffstat (limited to 'lib/libc/gen/getutxent.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud