freebsd-nq/sys/fs
Jaakko Heinonen 89d10571db Remove empty devfs directories automatically.
devfs_delete() now recursively removes empty parent directories unless
the DEVFS_DEL_NORECURSE flag is specified. devfs_delete() can't be
called anymore with a parent directory vnode lock held because the
possible parent directory deletion needs to lock the vnode. Thus we
unlock the parent directory vnode in devfs_remove() before calling
devfs_delete().

Call devfs_populate_vp() from devfs_symlink() and devfs_vptocnp() as now
directories can get removed.

Add a check for DE_DOOMED flag to devfs_populate_vp() because
devfs_delete() drops dm_lock before the VI_DOOMED vnode flag gets set.
This ensures that devfs_populate_vp() returns an error for directories
which are in progress of deletion.

Reviewed by:	kib
Discussed on:	freebsd-current (mostly silence)
2010-09-15 14:23:55 +00:00
..
cd9660 Revert the previous commit. The race is not applicable to the lockmgr 2010-07-16 19:52:03 +00:00
coda Properly bounds check ioctl/pioctl data arguments for Coda: 2010-08-07 08:08:14 +00:00
deadfs
devfs Remove empty devfs directories automatically. 2010-09-15 14:23:55 +00:00
ext2fs - Remove duplicate comment. 2010-09-01 05:34:17 +00:00
fdescfs
fifofs
hpfs
msdosfs
nfs Fix the NFSVNO_CMPFH() macro in the experimental NFS server so 2010-09-10 23:18:45 +00:00
nfsclient Fix the experimental NFS client so that it doesn't panic when 2010-09-09 15:45:11 +00:00
nfsserver This patch applies one of the two fixes suggested by 2010-09-10 23:49:33 +00:00
ntfs
nullfs Add a null_remove() function to nullfs, so that the v_usecount 2010-08-31 01:16:45 +00:00
nwfs Add dedicated routines to toggle lockmgr flags such as LK_NOSHARE and 2010-08-20 19:46:50 +00:00
portalfs
procfs fix a few cases where a string is passed via format argument instead of 2010-06-11 19:27:21 +00:00
pseudofs Add dedicated routines to toggle lockmgr flags such as LK_NOSHARE and 2010-08-20 19:46:50 +00:00
smbfs Add dedicated routines to toggle lockmgr flags such as LK_NOSHARE and 2010-08-20 19:46:50 +00:00
tmpfs tmpfs, zfs + sendfile: mark page bits as valid after populating it with data 2010-09-15 10:31:27 +00:00
udf Revert the previous commit. The race is not applicable to the lockmgr 2010-07-16 19:52:03 +00:00
unionfs Allowed unionfs to use whiteout not supporting file system as 2010-09-05 04:58:16 +00:00