NetBSD/sys/fs
jdolecek 88db5b512b Don't try to reacquire root vnode if vflush() in smbfs_unmount() fails.
This is potentially fragile, since the vnode may have been reclaimed
in vflush(), and used by different filesystem. This wouldn't actually
happen due to n_parent link to parent directory, but better safe
than sorry.

Since sm_root is only and strictly cache to speed up VFS_ROOT(),
it can be acquired/dropped any time. Rearrange code to not
require sm_root set, and change smbfs_root() back to set
sm_root if it's not set yet. smbfs_unmount() now only vrele()s
the root vnode if sm_root is set, and doesn't try reacquire it
if vflush() fails.

problem with vref() after vflush() pointed out by Bill Studenmund
2003-02-26 20:21:40 +00:00
..
adosfs Add extensible malloc types, adapted from FreeBSD. This turns 2003-02-01 06:23:35 +00:00
cd9660 Add extensible malloc types, adapted from FreeBSD. This turns 2003-02-01 06:23:35 +00:00
filecorefs Add extensible malloc types, adapted from FreeBSD. This turns 2003-02-01 06:23:35 +00:00
msdosfs make 'dosdirtemplate' static const 2003-02-25 10:29:12 +00:00
ntfs Add extensible malloc types, adapted from FreeBSD. This turns 2003-02-01 06:23:35 +00:00
smbfs Don't try to reacquire root vnode if vflush() in smbfs_unmount() fails. 2003-02-26 20:21:40 +00:00
Makefile move msdosfs code from sys/msdosfs to sys/fs/msdosfs 2002-12-26 12:31:23 +00:00