]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Move the cleanup of f_cdevpriv when the reference count of a devfs
authorJohn Baldwin <jhb@FreeBSD.org>
Fri, 4 Nov 2011 03:39:31 +0000 (03:39 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 4 Nov 2011 03:39:31 +0000 (03:39 +0000)
commitdccc45e4c095172c99b9b30d4e7dfcc4ac44c295
treed7d54216ad767a78285dc3590d8f68015e1ff0de
parent0bc7cf6fde4083c1a0cdf29b26075699028909e0
Move the cleanup of f_cdevpriv when the reference count of a devfs
file descriptor drops to zero out of _fdrop() and into devfs_close_f()
as it is only relevant for devfs file descriptors.

Reviewed by: kib
MFC after: 1 week
sys/fs/devfs/devfs_vnops.c
sys/kern/kern_descrip.c