freebsd-nq/sys/fs
Ian Dowse 0864ef1e8a 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
..
cd9660 Change the second argument of vflush() to an integer that specifies 2001-05-16 18:04:37 +00:00
coda Change the second argument of vflush() to an integer that specifies 2001-05-16 18:04:37 +00:00
deadfs Undo part of the tangle of having sys/lock.h and sys/mutex.h included in 2001-05-01 08:13:21 +00:00
devfs Change the second argument of vflush() to an integer that specifies 2001-05-16 18:04:37 +00:00
fdescfs Change the second argument of vflush() to an integer that specifies 2001-05-16 18:04:37 +00:00
fifofs Add a vop_stdbmap(), and make it part of the default vop vector. 2001-04-29 11:48:41 +00:00
hpfs Change the second argument of vflush() to an integer that specifies 2001-05-16 18:04:37 +00:00
msdosfs Change the second argument of vflush() to an integer that specifies 2001-05-16 18:04:37 +00:00
ntfs Change the second argument of vflush() to an integer that specifies 2001-05-16 18:04:37 +00:00
nullfs Change the second argument of vflush() to an integer that specifies 2001-05-16 18:04:37 +00:00
nwfs Change the second argument of vflush() to an integer that specifies 2001-05-16 18:04:37 +00:00
portalfs Change the second argument of vflush() to an integer that specifies 2001-05-16 18:04:37 +00:00
procfs GC prototype for procfs_bmap() missed during a previous commit. 2001-05-11 23:37:37 +00:00
pseudofs Let pseudofs into the warmth of the FreeBSD CVS repo. 2001-04-07 19:51:12 +00:00
smbfs Change the second argument of vflush() to an integer that specifies 2001-05-16 18:04:37 +00:00
specfs Backed out previous commit. It cause massive filesystem corruption, 2001-04-30 14:35:35 +00:00
umapfs Change the second argument of vflush() to an integer that specifies 2001-05-16 18:04:37 +00:00
unionfs Change the second argument of vflush() to an integer that specifies 2001-05-16 18:04:37 +00:00