diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-08-26 14:53:31 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-08-26 14:53:31 +0000 |
commit | dbafb3660ff075f56afc206d66783fced2583c2b (patch) | |
tree | 520806c7ac55be08c7af4682c3dd96d5ac81ef77 /sys/compat/svr4/svr4_fcntl.c | |
parent | 9c93810d2d0194412cc6831585246b06d1768704 (diff) | |
download | src-dbafb3660ff075f56afc206d66783fced2583c2b.tar.gz src-dbafb3660ff075f56afc206d66783fced2583c2b.zip |
Simplify the handling of VCHR and VBLK vnodes using the new dev_t:
Make the alias list a SLIST.
Drop the "fast recycling" optimization of vnodes (including
the returning of a prexisting but stale vnode from checkalias).
It doesn't buy us anything now that we don't hardlimit
vnodes anymore.
Rename checkalias2() and checkalias() to addalias() and
addaliasu() - which takes dev_t and udev_t arg respectively.
Make the revoke syscalls use vcount() instead of VALIASED.
Remove VALIASED flag, we don't need it now and it is faster
to traverse the much shorter lists than to maintain the
flag.
vfs_mountedon() can check the dev_t directly, all the vnodes
point to the same one.
Print the devicename in specfs/vprint().
Remove a couple of stale LFS vnode flags.
Remove unimplemented/unused LK_DRAINED;
Notes
Notes:
svn path=/head/; revision=50405
Diffstat (limited to 'sys/compat/svr4/svr4_fcntl.c')
-rw-r--r-- | sys/compat/svr4/svr4_fcntl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/svr4/svr4_fcntl.c b/sys/compat/svr4/svr4_fcntl.c index f4dd3370a159..add04e382f73 100644 --- a/sys/compat/svr4/svr4_fcntl.c +++ b/sys/compat/svr4/svr4_fcntl.c @@ -28,7 +28,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id$ + * $Id: svr4_fcntl.c,v 1.3 1999/07/30 12:45:15 newton Exp $ */ #include <sys/param.h> #include <sys/systm.h> @@ -280,7 +280,7 @@ fd_revoke(p, fd) (error = suser(p)) != 0) goto out; - if (vp->v_usecount > 1 || (vp->v_flag & VALIASED)) + if (vcount(vp) > 1) VOP_REVOKE(vp, REVOKEALL); out: vrele(vp); |