freebsd-skq/sys/gnu/fs/ext2fs
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
..
COPYRIGHT.INFO Updated/corrected the list of GPL'ed files. 2000-01-01 11:27:50 +00:00
ext2_alloc.c Preceed/preceeding are not english words. Use precede or preceding. 2001-02-18 10:25:42 +00:00
ext2_balloc.c Make a panic less misleading. 2001-04-29 11:45:15 +00:00
ext2_bmap.c Remove two unused arguments from ufs_bmaparray(). 2001-04-29 10:24:58 +00:00
ext2_extern.h Support filesystems with the not-so-new "sparse_superblocks" feature. 2000-11-03 16:41:48 +00:00
ext2_fs_sb.h Fixed clean flag handling: 1998-09-26 06:18:59 +00:00
ext2_fs.h Support filesystems with the not-so-new "sparse_superblocks" feature. 2000-11-03 16:41:48 +00:00
ext2_inode_cnv.c Merged changes in ext2_fs.h between Linux 1.2.2 and Linux 2.3.35. The 2000-01-01 17:39:21 +00:00
ext2_inode.c Fix typo (accessable --> accessible). 2000-06-14 17:53:40 +00:00
ext2_linux_balloc.c Put the bits in place for Alpha support for ext2. Not tested. 2000-12-09 22:32:49 +00:00
ext2_linux_ialloc.c Put the bits in place for Alpha support for ext2. Not tested. 2000-12-09 22:32:49 +00:00
ext2_lookup.c Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
ext2_mount.h VOP_BALLOC was never really a VOP in the first place, so convert it 2001-04-29 12:36:52 +00:00
ext2_readwrite.c Grab the process lock while calling psignal and before calling psignal. 2001-03-07 03:37:06 +00:00
ext2_subr.c Remove blatantly pointless call to VOP_BMAP(). 2001-05-01 09:12:05 +00:00
ext2_vfsops.c Change the second argument of vflush() to an integer that specifies 2001-05-16 18:04:37 +00:00
ext2_vnops.c Implement vop_std{get|put}pages() and add them to the default vop[]. 2001-05-01 08:34:45 +00:00
fs.h Quick fix for not writing group descriptor group, inode bitmaps or 2000-11-10 14:54:15 +00:00
i386-bitops.h Fix __asm__ clobber list abuse. 1999-11-15 23:16:06 +00:00
inode.h When running with soft updates, track the number of blocks and files 2001-05-08 07:42:20 +00:00