freebsd-skq/sys/fs/devfs
iedowse dafd513732 Change the second argument of vflush() to an integer that specifies
the number of references on the filesystem root vnode to be both
expected and released. Many filesystems hold an extra reference on
the filesystem root vnode, which must be accounted for when
determining if the filesystem is busy and then released if it isn't
busy. The old `skipvp' approach required individual filesystem
xxx_unmount functions to re-implement much of vflush()'s logic to
deal with the root vnode.

All 9 filesystems that hold an extra reference on the root vnode
got the logic wrong in the case of forced unmounts, so `umount -f'
would always fail if there were any extra root vnode references.
Fix this issue centrally in vflush(), now that we can.

This commit also fixes a vnode reference leak in devfs, which could
result in idle devfs filesystems that refuse to unmount.

Reviewed by:	phk, bp
2001-05-16 18:04:37 +00:00
..
devfs_devs.c Convert DEVFS from an "opt-in" to an "opt-out" option. 2001-05-13 20:52:40 +00:00
devfs_vfsops.c Change the second argument of vflush() to an integer that specifies 2001-05-16 18:04:37 +00:00
devfs_vnops.c After a successfull poll of the cloning functions, match on the 2001-05-14 08:20:46 +00:00
devfs.h staticize. 2000-12-08 15:07:24 +00:00