freebsd-dev/sys/ntfs
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
..
ntfs_compr.c Remove unneeded #include <sys/proc.h> lines. 2000-10-29 13:57:19 +00:00
ntfs_compr.h Merged NetBSD version, as they have done improvements: 1999-12-03 20:37:40 +00:00
ntfs_ihash.c Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
ntfs_ihash.h Convert lockmgr locks from using simple locks to using mutexes. 2000-10-04 01:29:17 +00:00
ntfs_inode.h Convert lockmgr locks from using simple locks to using mutexes. 2000-10-04 01:29:17 +00:00
ntfs_subr.c Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
ntfs_subr.h Convert lockmgr locks from using simple locks to using mutexes. 2000-10-04 01:29:17 +00:00
ntfs_vfsops.c Change the second argument of vflush() to an integer that specifies 2001-05-16 18:04:37 +00:00
ntfs_vfsops.h Forward declare some structs so that this header is more self-suifficent. 2000-01-14 19:54:42 +00:00
ntfs_vnops.c Implement vop_std{get|put}pages() and add them to the default vop[]. 2001-05-01 08:34:45 +00:00
ntfs.h Move the netexport structure from the fs-specific mountstructure 2001-04-25 07:07:52 +00:00
ntfsmount.h Merged NetBSD version, as they have done improvements: 1999-12-03 20:37:40 +00:00