88db5b512b
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 |
||
---|---|---|
.. | ||
adosfs | ||
cd9660 | ||
filecorefs | ||
msdosfs | ||
ntfs | ||
smbfs | ||
Makefile |